Add type definition for the user property in the kcContext of the terms.ftl page

This commit is contained in:
Joseph Garrone 2024-02-27 23:54:48 +01:00
parent 0569fa5e58
commit 63c40fd816

View File

@ -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<string, string[]>;
email: string;
emailVerified: boolean;
firstName?: string;
lastName?: string;
markedForEviction?: boolean;
};
};
export type LoginDeviceVerifyUserCode = Common & {