mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Fix OAuth redirect in dev mode
This commit is contained in:
parent
fd40498116
commit
e0477e1421
@ -21,7 +21,7 @@ export function OAuthCallback(props: { fullPage?: boolean }) {
|
||||
} catch (e: any) {
|
||||
setError(e);
|
||||
}
|
||||
if (!hasRedirected && process.env.NODE_ENV === 'production') {
|
||||
if (!hasRedirected && (!error || process.env.NODE_ENV === 'production')) {
|
||||
await app.redirectToSignIn();
|
||||
}
|
||||
}), []);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user