Skip to content
Snippets Groups Projects
Commit 4b83f938 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Always import keycloak from the beginning

We always need it to check if th user is logged in already, so doing
a dynamic import doesn't give us anything and just slows things down.
parent 9f03a973
No related branches found
No related tags found
No related merge requests found
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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment