...
 
Commits (2)
...@@ -30,6 +30,9 @@ class SIBAuthProvider extends HTMLElement { ...@@ -30,6 +30,9 @@ class SIBAuthProvider extends HTMLElement {
* @param {SIBAuth} parent - SIBAuth parent instance * @param {SIBAuth} parent - SIBAuth parent instance
*/ */
async login() { async login() {
if ('localStorage' in window) {
window.localStorage.clear();
}
auth.login(this.dataset.authority, { clientName: this.dataset.clientName }); auth.login(this.dataset.authority, { clientName: this.dataset.clientName });
} }
......