Update setup
This commit is contained in:
parent
df76640100
commit
cee8ea7ecb
19 changed files with 524 additions and 36 deletions
17
src/keycloak-theme/account/kcContext.ts
Normal file
17
src/keycloak-theme/account/kcContext.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { getKcContext } from "keycloakify/account";
|
||||
|
||||
export type KcContextExtension =
|
||||
| { pageId: "my-extra-page-1.ftl"; }
|
||||
| { pageId: "my-extra-page-2.ftl"; someCustomValue: string; };
|
||||
|
||||
export const { kcContext } = getKcContext<KcContextExtension>({
|
||||
//mockPageId: "password.ftl",
|
||||
mockData: [
|
||||
{
|
||||
pageId: "my-extra-page-2.ftl",
|
||||
someCustomValue: "foo bar"
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
export type KcContext = NonNullable<typeof kcContext>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue