diff --git a/services/ui-src/src/hooks/authHooks/authLifecycle.js b/services/ui-src/src/hooks/authHooks/authLifecycle.js index 348dbf335..2b9b37cca 100644 --- a/services/ui-src/src/hooks/authHooks/authLifecycle.js +++ b/services/ui-src/src/hooks/authHooks/authLifecycle.js @@ -28,7 +28,7 @@ class AuthManager { const isExpired = expiration && new Date(expiration).valueOf() < Date.now(); if (isExpired) { localStorage.removeItem("mdctcarts_session_exp"); - signOut().then(() => { + signOut({ global: true }).then(() => { window.location.href = "/"; }); } @@ -76,7 +76,7 @@ class AuthManager { this.promptTimeout(exp); this.timeoutForceId = setTimeout(() => { localStorage.removeItem("mdctcarts_session_exp"); - signOut(); + signOut({ global: true }); }, IDLE_WINDOW - PROMPT_AT); }, PROMPT_AT, diff --git a/services/ui-src/src/hooks/authHooks/userProvider.jsx b/services/ui-src/src/hooks/authHooks/userProvider.jsx index 515041c1a..64ed34bd8 100644 --- a/services/ui-src/src/hooks/authHooks/userProvider.jsx +++ b/services/ui-src/src/hooks/authHooks/userProvider.jsx @@ -32,7 +32,7 @@ export const UserProvider = ({ children }) => { try { setUser(null); localStorage.removeItem("mdctcarts_session_exp"); - await signOut(); + await signOut({ global: true }); } catch (error) { console.log("error signing out: ", error); // eslint-disable-line no-console }