[next-auth 5]Google Authentication profile callback not working #10173
Unanswered
nortonglitz
asked this question in
Help
Replies: 1 comment
-
@nortonglitz did you ever find a solution to this or not? I am in the exact same position right now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
As it's in the documentaition (Role Based Authentication Doc), you have to return on the profile callback inside the provider, the data you want to create the user.
I'm trying to get
given_name
,family_name
and insertrole
as "user" for new users, but it's not being possible.What happens is that it just saves the default columns, that is:
email
,image
andname
I'm using Drizzle Adaptar and Google Provider.
Packages versions:
My user schema:
My auth config:
Beta Was this translation helpful? Give feedback.
All reactions