Skip to content
Discussion options

You must be logged in to vote

JWT does not have accessToken field as you said. You would need to use module augmentation as per documentation if you are using typescript. I believe the code you posted works fine for plain JavaScript.

Doc link: https://next-auth.js.org/getting-started/typescript#module-augmentation

Here's what I do to log the callbacks for learning the flow

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kyduff
Comment options

Answer selected by kyduff
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants