Replies: 1 comment
-
What do you feel was incomplete in the docs? Using the jwt and session callbacks, you can persist any information in your session. account is the 3rd argument in the jwt callback, and is exposed on first login. what you return in jwt will be available in the session callback's second argument. what you return in session will be exposed to the client, so you can filter out things that are only necessary when reading session server-side for example. |
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.
-
Your question
How to get access token and id from accounts document - https://prnt.sc/1186oi6
What are you trying to do
I'm trying to access to "accesToken" and "providerAccountId"
Reproduction
Just basic setup with mongodb and typescript
Feedback
https://next-auth.js.org/configuration/callbacks - found this for callbacks but it feels incomplete
Beta Was this translation helpful? Give feedback.
All reactions