Skip to content

Commit

Permalink
Ticket CS2371782: Add global param to signout (#139825)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsummers1 authored Nov 18, 2024
1 parent b547077 commit 8bfc845
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions services/ui-src/src/hooks/authHooks/authLifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "/";
});
}
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion services/ui-src/src/hooks/authHooks/userProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8bfc845

Please sign in to comment.