Next-auth is not fetching user with type-graphql request object #1327
Unanswered
vincent-thomas
asked this question in
Q&A
Replies: 1 comment
-
TypeGraphQL |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Bug
The issue is that i can't get the user on server-side with next-auth and next.js. I do have access to the request object. (I guess type-graphql's
req
object follows the built-in 'Request' interface). I have tried with unstable_getServerSession, getSession and getToken fromnext-auth
. None of which worked.To Reproduce
Run
Expected Behavior
That it fetches the user as expected on the server with type-graphql
Logs
Environment (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions