diff --git a/src/components/layout/index.tsx b/src/components/layout/index.tsx index 2fe25c4f..49d7102a 100644 --- a/src/components/layout/index.tsx +++ b/src/components/layout/index.tsx @@ -25,14 +25,7 @@ const Layout = () => { Object.values(clientAccounts).some(account => !(account as { token?: string }).token); useEffect(() => { - if ( - isLoggedInCookie && - !isClientAccountsPopulated && - isOAuth2Enabled && - !isEndpointPage && - !isCallbackPage && - clientAccountsMissingToken - ) { + if (isLoggedInCookie && isOAuth2Enabled && !isEndpointPage && !isCallbackPage && clientAccountsMissingToken) { requestOidcAuthentication({ redirectCallbackUri: `${window.location.origin}/callback`, });