diff --git a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts index 2d57cdebc9..63772012cb 100644 --- a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts +++ b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts @@ -63,7 +63,6 @@ import { i18n } from '@lingui/core'; import { useNavigate, useSearchParams } from 'react-router-dom'; import { SOURCE_LOCALE } from 'twenty-shared/translations'; import { isDefined } from 'twenty-shared/utils'; -import { cookieStorage } from '~/utils/cookie-storage'; import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl'; import { useStore } from 'jotai'; @@ -179,7 +178,6 @@ export const useAuth = () => { const handleSetAuthTokens = useCallback( (tokens: AuthTokenPair) => { setTokenPair(tokens); - cookieStorage.setItem('tokenPair', JSON.stringify(tokens)); }, [setTokenPair], );