I added the _app.tsx file to my project to wrap my projects in next-auth SessionProvider, but my project ignore my _app.tsx, I added a div with bg set to orange on the _app.tsx and it doesn’t affect my project
This is the file name I see in your repo.
_app.page.tsx.tsx
I changed the name trying to solve the problem, if you change it to _app.tsx it won’t work
Assuming you are using the app directory the SessionProvider has to be in a client component.
Either just export SessionProvider from a client component or create a wrapper component (depending on if you want/need the wrapping component or not).
Basically this
Some random tutorial.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.