Auth0 Lock singup name field

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 ?

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.

https://auth0.com/docs/libraries/lock/v11/configuration#additionalsignupfields-array-

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

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.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.