user_metadata not being populated on signup using Auth0.js

Hi,
I’ve followed the API documentation here at Authentication API Explorer 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!

1 Like