From 38debaad5dd13cb9a5659893a22571e5126535e0 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sat, 14 Feb 2026 22:09:09 -0600 Subject: [PATCH] fix: skip stale token validation during callback code exchange (refs #190) Co-Authored-By: Claude Opus 4.6 --- frontend/src/core/auth/Auth0Provider.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/core/auth/Auth0Provider.tsx b/frontend/src/core/auth/Auth0Provider.tsx index 3c2926b..9ee6477 100644 --- a/frontend/src/core/auth/Auth0Provider.tsx +++ b/frontend/src/core/auth/Auth0Provider.tsx @@ -120,6 +120,7 @@ const TokenInjector: React.FC<{ children: React.ReactNode }> = ({ children }) => // Prevent stale session state when cached token is no longer valid React.useEffect(() => { if (!isAuthenticated || isLoading || validatingRef.current) return; + if (window.location.pathname === '/callback') return; const validateToken = async () => { validatingRef.current = true;