-
SummaryHi! 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 guidance 🙏 Additional informationNo response Create a reproductionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
Hi @desiboli,
This may not be the perfect solution, but more of a workaround.
Create a decorator file (ex. authDecorator.tsx) and load this in your preview.ts file.
The file should contain the following: