Skip to content

Commit

Permalink
comment for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 2, 2024
1 parent ea54991 commit 9b50827
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/app/auth/login/EmailPasswordForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ export function EmailPasswordForm({
if (loginResponse.ok) {
if (isSignup && shouldVerify) {
await requestEmailVerification(values.email);
// Use window.location.href to force a full page reload,
// ensuring app re-initializes with the new state (including
// server-side provider values)
window.location.href = "/auth/waiting-on-verification";
} else {
// See above comment
window.location.href = nextUrl ? encodeURI(nextUrl) : "/";
}
} else {
Expand Down

0 comments on commit 9b50827

Please sign in to comment.