Replies: 1 comment
-
Hi @desiboli, Create a decorator file (ex. authDecorator.tsx) and load this in your preview.ts file. The file should contain the following:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hi!
With Storybook V6 and V7 I was able to use this plugin @tomfreudenberg/next-auth-mock to mock auth data in order to be able to show/create stories of components using session.
When upgrading to V8 everything stopped working, the plugin is not up to date with all the changes from the Storybook team.
Is there anyway I can make components/stories using session work again ?
I need guide on how to set this up with Next.js + Auth.js. If anyone has successfully tried this already with Storybook v8 🙏
I need guidance 🙏
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions