Skip to content

Commit 00c9a47

Browse files
committed
remove a condition of requestOidcAuthentication
1 parent eb6de5c commit 00c9a47

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/javascript/_common/auth.js

-7
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,6 @@ export const requestSingleSignOn = async () => {
143143
// if client.accounts in localStorage is empty - !isClientAccountsPopulated
144144
// and if feature flag for OIDC Phase 2 is enabled - isAuthEnabled
145145
// Check if any account or its linked account is missing a token
146-
const hasMissingToken = Object.values(clientAccounts).some((account) => {
147-
// Check if current account is missing token
148-
if (!account?.token) {
149-
return true; // No linked accounts and no token
150-
}
151-
return false;
152-
});
153146

154147
const shouldRequestSignOn =
155148
isLoggedInCookie &&

0 commit comments

Comments
 (0)