fix: add missing hook dependencies for stale token effect (refs #190)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-02-14 21:57:28 -06:00
parent 723e25e1a7
commit 15128bfd50

View File

@@ -140,7 +140,7 @@ const TokenInjector: React.FC<{ children: React.ReactNode }> = ({ children }) =>
}; };
validateToken(); validateToken();
}, [isAuthenticated, isLoading]); }, [isAuthenticated, isLoading, getAccessTokenSilently, logout]);
// Force authentication check for devices when user seems logged in but isAuthenticated is false // Force authentication check for devices when user seems logged in but isAuthenticated is false
React.useEffect(() => { React.useEffect(() => {