When using storybook, any component that relies on using the useOktaAuth() hook provided by the SDK, will break with out have a mocked instance of the okta context.
Notes
There is currently very little documentation on mocking the okta context for next with app router
SO far I have tried recreating the okta context using react context with no luck, I have also tried mocking the return value from the custom hook that makes the fetch call with no luck either
When using storybook, any component that relies on using the useOktaAuth() hook provided by the SDK, will break with out have a mocked instance of the okta context.
Notes There is currently very little documentation on mocking the okta context for next with app router