unstable_getServerSession()
doesn't work on graphql (type-graphql)
#5126
Unanswered
vincent-thomas
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Reproduction URL
https://github.com/vincent-thomas/typegraphql-with-next-auth-issue
Describe the issue
The issue is that i can't get the user on server-side with graphql (more precisely type-graphql). I do have access to the request object. (I guess it follows the built-in 'Request' interface, so not next.js 'NextApiRequest'). I have tried with
unstable_getServerSession
,getSession
andgetToken
. None of which workedIs this not possible?
How to reproduce
Run
Not a pro on bash, you may have to modify it a bit
Expected behavior
That it fetches the user as expected on the server with graphql and type-graphql
Beta Was this translation helpful? Give feedback.
All reactions