mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
fixes: #34864 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> (cherry picked from commit ced8e643c9c80ccd549439d0db9d03088748b464)
This commit is contained in:
parent
91b7f8136e
commit
c110149f32
@ -4,7 +4,6 @@ import {
|
||||
useRequiredContext,
|
||||
} from "@keycloak/keycloak-ui-shared";
|
||||
import type Keycloak from "keycloak-js";
|
||||
|
||||
import type { Environment } from "./environment";
|
||||
|
||||
export type AdminClientProps = {
|
||||
@ -31,7 +30,7 @@ export async function initAdminClient(
|
||||
try {
|
||||
await keycloak.updateToken(5);
|
||||
} catch {
|
||||
keycloak.login();
|
||||
await keycloak.login();
|
||||
}
|
||||
|
||||
return keycloak.token;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user