fix: clear session storage before login

parent e50c1c4b
Pipeline #6060 failed with stage
in 49 seconds
...@@ -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 });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment