Skip to content
Discussion options

You must be logged in to vote

So according to our FAQ, if you don't persist the access token in the session then you have to look it up from the database yourself. I assume this is because in serverless environments, the cookie is really the only way to persist data without accessing a database.

https://next-auth.js.org/faq#how-do-i-get-refresh-tokens-and-access-tokens-for-an-oauth-account

Hope this helps.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by nicksemansonos
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