introduced "/" for keycloak.json (#170)

fixes: #165
This commit is contained in:
Erik Jan de Wit 2020-10-14 14:53:51 +02:00 committed by GitHub
parent cb3eca46ec
commit 90779b6da4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
import Keycloak, { KeycloakInstance } from "keycloak-js"; import Keycloak, { KeycloakInstance } from "keycloak-js";
const keycloak: KeycloakInstance = Keycloak(); const keycloak: KeycloakInstance = Keycloak("/keycloak.json");
export default async function (): Promise<KeycloakInstance> { export default async function (): Promise<KeycloakInstance> {
await keycloak.init({ onLoad: "check-sso", pkceMethod: "S256" }).catch(() => { await keycloak.init({ onLoad: "check-sso", pkceMethod: "S256" }).catch(() => {