ensure reload (#3447)

This commit is contained in:
pablonyx 2024-12-12 12:23:17 -08:00 committed by GitHub
parent 87d97d13d5
commit 5b5e1eb7c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(