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 6adeab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/javascript/_common/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export const requestSingleLogout = async (onWSLogoutAndRedirect) => {
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) {
await logoutHandler(onWSLogoutAndRedirect);
}
Expand Down

0 comments on commit 6adeab4

Please sign in to comment.