How does NextAuth save user info to the database with the prisma adapter?
Is it possible to see the function that nextauth calls to save user info to the database?
Is there a way to console.log what the Provider returns after signing in?
I'd like to add one more field to the User schema like their Facebook Public Profile ID after signing in when using FacebookProvider but I don't know where to start.
2 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
in
authOptions
you can add a callBack
element for signIn
where you can store the information you've gotten from the auth. I tested with something like this: