From e9432bd74b85b58f1131934804d8567d0ae4c986 Mon Sep 17 00:00:00 2001 From: Aneela Chagarlamudi Date: Tue, 2 Jan 2024 10:16:26 -0500 Subject: [PATCH] Revert "set cookie" This reverts commit 883ad23e9163ebb72dcfa01af8d58cb7fd52aa9b. --- src/auth/OIDCConnector/OIDCSecured.tsx | 2 -- 1 file changed, 2 deletions(-) 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) {