...
 
Commits (2)
......@@ -235,7 +235,15 @@ class SIBAuth extends HTMLElement {
* Try to logout if favorite provider is set
*/
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
......