Update setup

This commit is contained in:
garronej 2023-03-21 17:19:01 +01:00
parent df76640100
commit cee8ea7ecb
19 changed files with 524 additions and 36 deletions

View 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>;