Session callback not firing #9505
Unanswered
Bunbu-Ryodo
asked this question in
Help
Replies: 2 comments
-
In my case, I passed the same arguments as NextAuth to getServerSession and the session callback was called. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Were you able to resolve the issue? |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to modify the session object so it includes a user id as well as the default email, name, photo. I'm able to authenticate users correctly but my session callback never appears to be called. Is there anything wrong with my configuration? I have a next-auth.d.ts file in a types folder which extends the Session interface as per the docs. Am I overlooking something here, or should this work as intended?
I've looked through similar threads, and found one where the OP simply wasn't using the useSession hook (I'm trying to retrieve the session server side using getServerSession()) but that isn't the issue for me. I'm getting a session object where I expect it, just not with the augmented properties.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions