๐Some values you need are missing from in kcContext type definitions?
Extending the KcContext type definition
Extending the KcContext type definition
The kcContext type definitions only includes what the default pages actually uses.
However, at runtime there is much more information in the kcContext that what TypeScript is aware of!
A common scenario is when you want, on the register page to enable sign-up via Google or Facebook but the kcContext.social object isn't defined:
Here is how you would go about addressing this usecase for this particular usecase:
First step is to extend the KcContext type:
Secont step is to augment the KcContext base mocks for testing in Storybook:
Then you can use the kcContext.social object in the register page just as you would on the login page: