diff --git a/src/login/kcContext/KcContext.ts b/src/login/kcContext/KcContext.ts index 9cd8db06..c729d4af 100644 --- a/src/login/kcContext/KcContext.ts +++ b/src/login/kcContext/KcContext.ts @@ -244,6 +244,17 @@ export declare namespace KcContext { export type Terms = Common & { pageId: "terms.ftl"; + //NOTE: Optional because maybe it wasn't defined in older keycloak versions. + user?: { + id: string; + username: string; + attributes: Record; + email: string; + emailVerified: boolean; + firstName?: string; + lastName?: string; + markedForEviction?: boolean; + }; }; export type LoginDeviceVerifyUserCode = Common & {