diff --git a/src/javascript/_common/auth.js b/src/javascript/_common/auth.js index 6f706ebc134..5460596ac67 100644 --- a/src/javascript/_common/auth.js +++ b/src/javascript/_common/auth.js @@ -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); } };