Commit 8db57088 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

Merge branch 'sib-app-229' into 'master'

bugfix: clear localStorage when login out to avoid keeping old client session...

See merge request !21
parents ae5641cc 344fb281
Pipeline #6038 passed with stage
in 52 seconds
......@@ -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
......
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