From b333047b9597f77a1f7b9c4c12339e801c2d2e46 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Wed, 11 Nov 2020 14:59:54 +0100 Subject: [PATCH] Don't use class fields not supported in firefox 68 --- packages/auth/src/keycloak.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/auth/src/keycloak.js b/packages/auth/src/keycloak.js index 42db6858..b0b210d7 100644 --- a/packages/auth/src/keycloak.js +++ b/packages/auth/src/keycloak.js @@ -55,15 +55,6 @@ const ensureURL = function(urlOrPath) { */ export class KeycloakWrapper extends EventTarget { - /* Minimum validity of the token in seconds */ - MIN_VALIDITY = 20; - - /* Interval at which the token validity is checked, in seconds */ - CHECK_INTERVAL = 10; - - /* Enables extra debug logging */ - DEBUG = false; - constructor(baseURL, realm, clientId, silentCheckSsoUri, idpHint) { super(); @@ -76,6 +67,15 @@ export class KeycloakWrapper extends EventTarget { this._idpHint = idpHint; this._checkId = null; + /* Minimum validity of the token in seconds */ + this.MIN_VALIDITY = 20; + + /* Interval at which the token validity is checked, in seconds */ + this.CHECK_INTERVAL = 10; + + /* Enables extra debug logging */ + this.DEBUG = false; + this._onVisibilityChanged = this._onVisibilityChanged.bind(this); document.addEventListener("visibilitychange", this._onVisibilityChanged); } -- GitLab