Skip to content

Commit

Permalink
chore: removed timeout for logout
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Nov 26, 2024
1 parent 84f488e commit 27141ed
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/javascript/_common/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ export const getLogoutHandler = onWSLogoutAndRedirect => {
}

const cleanup = () => {
clearTimeout(timeout);

const iframe = document.getElementById('logout-iframe');
if (iframe) iframe.remove();
};
Expand Down Expand Up @@ -135,11 +133,9 @@ export const getLogoutHandler = onWSLogoutAndRedirect => {
iframe.style.display = 'none';
document.body.appendChild(iframe);

timeout = setTimeout(() => {
onWSLogoutAndRedirect();
window.removeEventListener('message', onMessage);
cleanup();
}, LOGOUT_HANDLER_TIMEOUT);
onWSLogoutAndRedirect();
window.removeEventListener('message', onMessage);
cleanup();
}

iframe.src = getOAuthLogoutUrl();
Expand Down

0 comments on commit 27141ed

Please sign in to comment.