...
 
Commits (2)
...@@ -235,7 +235,15 @@ class SIBAuth extends HTMLElement { ...@@ -235,7 +235,15 @@ class SIBAuth extends HTMLElement {
* Try to logout if favorite provider is set * Try to logout if favorite provider is set
*/ */
logout() { logout() {
auth.logout().then(() => this.dispatchUserInfo()).then(() => window.location.reload()); auth
.logout()
.then(() => this.dispatchUserInfo())
.then(() => {
if ('localStorage' in window) {
window.localStorage.clear();
}
})
.then(() => window.location.reload());
} }
/** @function /** @function
......