...
 
Commits (2)
...@@ -33,6 +33,9 @@ class SIBAuthProvider extends HTMLElement { ...@@ -33,6 +33,9 @@ class SIBAuthProvider extends HTMLElement {
if ('localStorage' in window) { if ('localStorage' in window) {
window.localStorage.clear(); window.localStorage.clear();
} }
if ('sessionStorage' in window) {
window.sessionStorage.clear();
}
auth.login(this.dataset.authority, { clientName: this.dataset.clientName }); auth.login(this.dataset.authority, { clientName: this.dataset.clientName });
} }
......
...@@ -242,6 +242,9 @@ class SIBAuth extends HTMLElement { ...@@ -242,6 +242,9 @@ class SIBAuth extends HTMLElement {
if ('localStorage' in window) { if ('localStorage' in window) {
window.localStorage.clear(); window.localStorage.clear();
} }
if('sessionStorage' in window) {
window.sessionStorage.clear();
}
}) })
.then(() => window.location.reload()); .then(() => window.location.reload());
} }
......