From 77e3a1fcecd84c6a676ba22af25c009e67d0e7dc Mon Sep 17 00:00:00 2001 From: James Bhattarai Date: Fri, 6 Mar 2026 09:39:55 +0545 Subject: [PATCH] Fix: 2FA/passkey page redirect + org Setup context --- src/pages/auth/LoginPage.tsx | 6 +++++- src/pages/auth/OrgSetupPage.tsx | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/auth/LoginPage.tsx b/src/pages/auth/LoginPage.tsx index 27b1c9a..d95d7d1 100644 --- a/src/pages/auth/LoginPage.tsx +++ b/src/pages/auth/LoginPage.tsx @@ -49,7 +49,7 @@ async function completeOidcFlow(oidcSessionId: string, token: string): Promise { await refreshUser(); await checkOrgAdmin(); + queryClient.invalidateQueries({ queryKey: ['organizations'] }); navigate("/profile", { replace: true }); };