use authServerUrl when defined (#29746)
fixes: #29641 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
97cc973af0
commit
3abb09bf59
1 changed files with 4 additions and 1 deletions
|
@ -49,7 +49,10 @@ export const KeycloakProvider = <T extends BaseEnvironment>({
|
|||
const [error, setError] = useState<unknown>();
|
||||
const keycloak = useMemo(() => {
|
||||
const keycloak = new Keycloak({
|
||||
url: environment.authUrl,
|
||||
url:
|
||||
"authServerUrl" in environment
|
||||
? (environment.authServerUrl as string)
|
||||
: environment.authUrl,
|
||||
realm: environment.realm,
|
||||
clientId: environment.clientId,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue