From 4807b6f72d6f140037e83d9cc5050e802abe5069 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Thu, 7 Oct 2021 12:19:46 +0200 Subject: [PATCH] auth: don't emit the auth property more than needed _setLoginStatus takes care of that anyway. --- packages/auth/src/auth-keycloak.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/auth/src/auth-keycloak.js b/packages/auth/src/auth-keycloak.js index ab7a78b2..49ffc1ad 100644 --- a/packages/auth/src/auth-keycloak.js +++ b/packages/auth/src/auth-keycloak.js @@ -99,7 +99,6 @@ export class AuthKeycloak extends AdapterLitElement { } this.personId = personId; - this.sendSetPropertyEvents(); this._setLoginStatus(LoginStatus.LOGGED_IN, tokenChanged || newPerson); } else { if (this._loginStatus === LoginStatus.LOGGED_IN) { @@ -111,7 +110,6 @@ export class AuthKeycloak extends AdapterLitElement { this.personId = ""; this.person = null; - this.sendSetPropertyEvents(); this._setLoginStatus(LoginStatus.LOGGED_OUT); } @@ -133,13 +131,11 @@ export class AuthKeycloak extends AdapterLitElement { .then(response => response.json()) .then((person) => { that.person = person; - this.sendSetPropertyEvents(); this._setLoginStatus(this._loginStatus, true); }); } catch (error) { console.warn(error); that.person = null; - this.sendSetPropertyEvents(); this._setLoginStatus(this._loginStatus, true); } }, {}, that.lang); -- GitLab