useSession Hook isn't returning accessToken #1328
-
Describe the bug useSession hook isn't returning accessToken, but it should return according to the example session object. Steps to reproduce Expected behavior Feedback
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It does not do that by default. See the TIP section right under the link you posted:
access_token goes under OAuth token. Check out the jwt and session callbacks: |
Beta Was this translation helpful? Give feedback.
It does not do that by default.
See the TIP section right under the link you posted:
access_token goes under OAuth token.
Check out the jwt and session callbacks:
https://next-auth.js.org/configuration/callbacks#jwt-callback
https://next-auth.j…