From dd5b9e752bb42c810ae284c24673e4b1ee447805 Mon Sep 17 00:00:00 2001 From: Thomas Draier Date: Fri, 15 Nov 2024 13:01:56 +0100 Subject: [PATCH] Add refresh schedule (#8665) --- extension/app/src/components/auth/useAuth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/extension/app/src/components/auth/useAuth.ts b/extension/app/src/components/auth/useAuth.ts index 6b698df29750..b1ce68640409 100644 --- a/extension/app/src/components/auth/useAuth.ts +++ b/extension/app/src/components/auth/useAuth.ts @@ -44,6 +44,7 @@ export const useAuthHook = () => { return; } setTokens(savedTokens); + scheduleTokenRefresh(savedTokens.expiresAt); }, [handleLogout]); const scheduleTokenRefresh = useCallback(