next-auth-mock icon indicating copy to clipboard operation
next-auth-mock copied to clipboard

Next.js 13 (with app dir) useSession must be wrapped in SessionProvider

Open uixmat opened this issue 1 year ago • 28 comments

Hey Tom, struggling to get your package working as intended. I'm using the new app directory in Next.js 13, Storybook is playing nice until i try useSession on my storybook component and i'm thrown the following error:

[next-auth]: `useSession` must be wrapped in a <SessionProvider />

have you encountered the same issue or could advise how to fix ?

uixmat avatar Dec 09 '22 04:12 uixmat