mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-14 07:03:03 +02:00
ensure reload (#3447)
This commit is contained in:
@ -32,7 +32,10 @@ export function Verify({ user }: { user: User | null }) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (response.ok) {
|
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 {
|
} else {
|
||||||
const errorDetail = (await response.json()).detail;
|
const errorDetail = (await response.json()).detail;
|
||||||
setError(
|
setError(
|
||||||
|
Reference in New Issue
Block a user