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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user