Skip to content

Commit

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

const logoutHandler = getLogoutHandler(onWSLogoutAndRedirect);

// 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 f012acf

Please sign in to comment.