Skip to content

Commit

Permalink
Fix OAuth redirect in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
N2D4 committed Jun 26, 2024
1 parent fd40498 commit e0477e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stack/src/components-page/oauth-callback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}), []);
Expand Down

0 comments on commit e0477e1

Please sign in to comment.