Specifying user data (e.g. username) for social Providers? #3185
Unanswered
wanglophile
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
Say I have a registration button that uses the Google Provider:
Currently, the username seems to be generated off the Google Account's first name.
How can I allow the user to specify a username? And then have the social Provider actually create the account with that username?
I.e. something like
I can add user-specific fields for a custom CredentialsProvider but neither the Google Provider documentation nor the Google Provider options seems to provide a "username" field:
Is this even possible for Google and other social Provider?
How to reproduce ☕️
Use the default
signIn("google")
to register an account.The username is generated based off the Google account's first name.
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions