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

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Eric Gullickson
2026-02-14 21:57:28 -06:00
co-authored by Claude Opus 4.6
parent 723e25e1a7
commit 15128bfd50
+1 -1
View File
@@ -140,7 +140,7 @@ const TokenInjector: React.FC<{ children: React.ReactNode }> = ({ children }) =>
};
validateToken();
}, [isAuthenticated, isLoading]);
}, [isAuthenticated, isLoading, getAccessTokenSilently, logout]);
// Force authentication check for devices when user seems logged in but isAuthenticated is false
React.useEffect(() => {