Compare commits

...

1 Commits

Author SHA1 Message Date
pablodanswer
a494ceca53 ensure reload 2024-12-12 11:11:20 -08:00

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(