Homogeneous syntax

This commit is contained in:
garronej 2023-03-04 18:06:49 +01:00
parent 79d92dd2b5
commit 00059fbb80
2 changed files with 8 additions and 8 deletions

View file

@ -58,12 +58,12 @@ async function createKeycloakOidcClient(params: Params): Promise<OidcClient> {
const isAuthenticated = await keycloakInstance
.init({
"onLoad": "check-sso",
"silentCheckSsoRedirectUri": `${window.location.origin}/silent-sso.html`,
"responseMode": "query",
"checkLoginIframe": false,
"adapter": createKeycloakAdapter({
"transformUrlBeforeRedirect": url =>
onLoad: "check-sso",
silentCheckSsoRedirectUri: `${window.location.origin}/silent-sso.html`,
responseMode: "query",
checkLoginIframe: false,
adapter: createKeycloakAdapter({
transformUrlBeforeRedirect: url =>
[url].map(transformUrlBeforeRedirect).map(
url =>
addParamToUrl({
@ -73,7 +73,7 @@ async function createKeycloakOidcClient(params: Params): Promise<OidcClient> {
}).newUrl
)[0],
keycloakInstance,
"getRedirectMethod": () => redirectMethod
getRedirectMethod: () => redirectMethod
})
})
.catch((error: Error) => error);