Skip to content

Commit

Permalink
ensure reload
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 12, 2024
1 parent dee1a0e commit a494cec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/app/auth/verify-email/Verify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export function Verify({ user }: { user: User | null }) {
});

if (response.ok) {
router.push("/");
// 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 = "/";
} else {
const errorDetail = (await response.json()).detail;
setError(
Expand Down

0 comments on commit a494cec

Please sign in to comment.