Skip to content
Discussion options

You must be logged in to vote

Please read the docs carefully:

https://next-auth.js.org/configuration/callbacks#jwt-callback

https://next-auth.js.org/configuration/callbacks#session-callback

NOTE ⚠: If you need to fetch data, do it in the if branch of the jwt callback, to avoid expensive session responses.

Replies: 2 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@bathientran
Comment options

@balazsorban44
Comment options

Answer selected by bathientran
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
Converted from issue

This discussion was converted from issue #1739 on April 16, 2021 12:01.