#next-auth

5 messages · Page 1 of 1 (latest)

mystic dirge
#

is there a special way or tutorial to use next-auth with the app directory? all i can seem to find is just the approaches with pages and app for using the use session provider, or it could be used in the general layout for app/?

hot boltBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

      🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in <id:customize>

      ✅ You can mark a message as the answer for your post with `Right click -> Apps -> Mark Solution`
      (if you don't see the option, try refreshing Discord with Ctrl + R)
tight cypress
#

I think for me with NextAuth I also setup the middleware, which at that point allowed me to access the session on any Server Component using const session = await getServerSession(authOptions)

I'm not entirely sure if this was necessary to setup the middleware first or not, but I did start working for me after that.

mystic dirge