diff --git a/packages/auth/src/keycloak.js b/packages/auth/src/keycloak.js index 2d66567b8866b19feda80705135e289f528e79c0..bc0b3cf92c989ebd44f8d553f3d0ee2d6a0b6804 100644 --- a/packages/auth/src/keycloak.js +++ b/packages/auth/src/keycloak.js @@ -1,4 +1,5 @@ import {EventTarget} from "event-target-shim"; // Because EventTarget() doesn't exist on Safari +import Keycloak from "keycloak-js"; const promiseTimeout = function(ms, promise) { @@ -72,8 +73,6 @@ export class KeycloakWrapper extends EventTarget { if (this._keycloak !== null) return; - const Keycloak = await import('keycloak-js').then((mod) => { return mod.default; }); - this._keycloak = Keycloak({ url: this._baseURL, realm: this._realm,