How can I configure something like nextauth `callbacks.signIn`?
When user signin by apple or google oauth, I want to query user information from my exists database, and verify that the user, and return new user information to session
in nextauth I can do something like:
What should I do here?
2 Replies
This is what better auth does internally for you like creating a user and session even also validation as well. But you are looking to inspecting more you can hook in to databaseHook to trigger some actions before and after the user or session created.
@GeorgeZou Do you have any more questions? Otherwise I'll mark this post as solved.