fix: skip stale token validation during callback code exchange (refs #190)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 3m28s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 22s
Deploy to Staging / Verify Staging (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-02-14 22:09:09 -06:00
parent db127eb24c
commit 38debaad5d

View File

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