Commit 173b0f1a authored by Christophe Henry's avatar Christophe Henry

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

bugfix: clear localStorage before loging in to avoid keeping old client session (startinblox/applications/sib-app#229)
parent 8db57088
Pipeline #6042 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