Skip to content

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

Open
@uixmat

Description

@uixmat

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingis-fixedThe issue should been fixed by now

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions