Skip to content

Commit

Permalink
logout client when enable or disable 2FA in different windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiyeh-deriv committed Aug 1, 2022
1 parent 4dcf967 commit 482c1d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/App/initStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const setStorageEvents = root_store => {
break;
}
case 'active_loginid':
if (localStorage.getItem('active_loginid') === 'null') {
root_store.client.logout();
}
if (document.hidden) {
window.location.reload();
}
Expand Down

0 comments on commit 482c1d0

Please sign in to comment.