Auth0 Home Blog Docs

user_metadata not being populated on signup using Auth0.js

signup
user_metadata

#1

Hi,
I’ve followed the API documentation here at https://auth0.com/docs/api/authentication#signup in order to specify custom user_metadata at the point of signing up a new user. My code looks like this:

auth0.signup({
                connection: 'Username-Password-Authentication',
                email: emailAddress,
                password: password,
                user_metadata: { 
                        first_name: firstName, 
                        last_name: lastName, 
                        mobile_number: mobileNumber 
                }
 }

The call succeeds, but when I look at the newly created user in the Auth0 Management Console, the user_metadata for that user is empty.

Could somebody help shed some light on why this isn’t working as expected?

Thanks!


#2