Handle current session when auth via new provider #2976
-
Hello, i can't find how to handle my case in documentation.
How to access to current authentication data before create new session in callbacks? |
Beta Was this translation helpful? Give feedback.
Answered by
balazsorban44
Oct 17, 2021
Replies: 1 comment 7 replies
-
if you are using a stateless cookie persisted JWT session (which is the default), you don't have that option. you will need a database/adapter to persist the user data between sessions https://next-auth.js.org/adapters/overview |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
lavcraft
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you are using a stateless cookie persisted JWT session (which is the default), you don't have that option. you will need a database/adapter to persist the user data between sessions https://next-auth.js.org/adapters/overview