Auth0 Home Blog Docs

Auth0 Lock singup name field

auth0-lock

#1

I’m using auth0-lock and auth0 database. On new signup, the account is created with the email in the name field. unless the user select facebook or google as a provider to signup. how can i caputre the name in addition to the email and password ?


#2

Since you are already using Lock library, you can simply use the additionalSignUpFields config in Lock to add extra fields in the Sign up page which will be captured and saved in the user_metadata.


#3

true, but that means all my account names in the dashboard are with pattern of : johnsmith@somewhere.com instead of John Smith??


#4

When you add a value to user_metadata.name it will override the root name in user profile, so in your dashboard, the proper name value will be displayed rather than the email.