Replies: 1 comment
-
since next-auth uses cookies to store the session id. when calling in a server component you have to manually include the headers. you can implement this by using the following code snippet
this can be included in you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Nextjs ^13.4 with GraphQL Yoga & Apollo/client and Prisma.
I'm trying to get the current user's session in GraphQL Pothos, by forwarding the response of getServerSession() but it is always null.
If I call
getServerSession()
within an RSC, then I can see the session details.Not sure where Im going wrong.
Beta Was this translation helpful? Give feedback.
All reactions