How do I return a different object? #937
Answered
by
balazsorban44
Ethan-Hill
asked this question in
Help
-
Hey, so I'm currently using the discord OAuth provider and I was wanting to know how I could change the returned object to the session. I'm looking to return the profile object instead of the user object or even better have access to both in the session. Any help would be appreciated, thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
balazsorban44
Dec 9, 2020
Replies: 1 comment 1 reply
-
Hi there! Check out the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
balazsorban44
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there! Check out the
jwt
andsession
callbacks:https://next-auth.js.org/configuration/callbacks