Skip to content

Commit

Permalink
fix: removed extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
rupato-deriv committed Feb 18, 2025
1 parent 509889f commit 6cda709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ const Layout = () => {
isClientAccountsPopulated &&
Object.values(clientAccounts).some(account => !(account as { token?: string }).token);

console.log('clientAccounts', clientAccountsMissingToken, clientAccounts);
useEffect(() => {
if (isLoggedInCookie && isOAuth2Enabled && !isEndpointPage && !isCallbackPage && clientAccountsMissingToken) {
console.log('requestOidcAuthentication');
requestOidcAuthentication({
redirectCallbackUri: `${window.location.origin}/callback`,
});
Expand Down

0 comments on commit 6cda709

Please sign in to comment.