From ba2bf52f9f605e58f991057c3d4b1d22f4dac08c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= <cpartiot@gmail.com> Date: Fri, 6 Sep 2019 10:19:13 +0200 Subject: [PATCH] update: reload on logout --- sib-auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sib-auth.js b/sib-auth.js index ae97280..2cab73f 100644 --- a/sib-auth.js +++ b/sib-auth.js @@ -232,7 +232,7 @@ class SIBAuth extends HTMLElement { * Try to logout if favorite provider is set */ logout() { - auth.logout().then(() => this.dispatchUserInfo()); + auth.logout().then(() => this.dispatchUserInfo()).then(() => window.location.reload()); } /** @function -- GitLab