Commit 40c22853 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

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

bugfix: clear localStorage before loging in to avoid keeping old client...

See merge request !22
parents 8db57088 173b0f1a
Pipeline #6044 passed with stage
in 52 seconds
......@@ -30,6 +30,9 @@ class SIBAuthProvider extends HTMLElement {
* @param {SIBAuth} parent - SIBAuth parent instance
*/
async login() {
if ('localStorage' in window) {
window.localStorage.clear();
}
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