-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the correct way to overwrite the function signIn in Callbacks in v5? #11164
Labels
documentation
Relates to documentation
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Comments
I have implemented custom sessions with callbacks the following way:
|
I only problem I have faces is with the trigger to update the session when I verify user email and I think it is some of my personal error. For detailed implementation check this repository. |
Actually the docs are in migration currently so some features are explained in the old documentation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Relates to documentation
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
What is the improvement or update you wish to see?
in version 4, you could edit the signIn function inside callbacks, but in version 5 I don't see where to edit this option.
Will this option still be valid in the future?
Is there any context that might help us understand?
examples:
Does the docs page already exist? Please link to it.
https://next-auth.js.org/configuration/callbacks#sign-in-callback
The text was updated successfully, but these errors were encountered: