Skip to content

Commit

Permalink
chore: fix logout loop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Dec 9, 2024
1 parent d4c4d60 commit c7028a3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/javascript/_common/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ export const requestSingleLogout = async (onWSLogoutAndRedirect) => {
const isCallbackPage = window.location.pathname.includes('callback');
const isEndpointPage = window.location.pathname.includes('endpoint');

// eslint-disable-next-line
console.log('are we logging out', isLoggedOutCookie, isClientAccountsPopulated, isAuthEnabled, isCallbackPage, isEndpointPage);
if (isLoggedOutCookie && isClientAccountsPopulated && isAuthEnabled && !isCallbackPage && !isEndpointPage) {
const logoutHandler = getLogoutHandler(onWSLogoutAndRedirect);
await logoutHandler(onWSLogoutAndRedirect);
Expand Down

0 comments on commit c7028a3

Please sign in to comment.