diff --git a/src/auth/OIDCConnector/OIDCSecured.tsx b/src/auth/OIDCConnector/OIDCSecured.tsx index 657209949..eb0227fde 100644 --- a/src/auth/OIDCConnector/OIDCSecured.tsx +++ b/src/auth/OIDCConnector/OIDCSecured.tsx @@ -20,7 +20,6 @@ import createGetUserPermissions from '../createGetUserPermissions'; import initializeAccessRequestCookies from '../initializeAccessRequestCookies'; import { getOfflineToken, prepareOfflineRedirect } from '../offline'; import { OFFLINE_REDIRECT_STORAGE_KEY } from '../../utils/consts'; -import { setCookie } from '../setCookie'; type Entitlement = { is_entitled: boolean; is_trial: boolean }; const serviceAPI = entitlementsApi(); @@ -178,7 +177,6 @@ export function OIDCSecured({ useEffect(() => { authRef.current = auth; - setCookie(authRef.current?.user?.access_token ?? '', authRef.current.user?.expires_at ?? 0); }, [auth]); if (!auth.isAuthenticated || !state.ready) {