I am using auth0 library signup method for user registration.But I want to add app metadata during signup only . Can I add app metadata like below , will that work ?
webAuth.signup({
connection: ‘Username-Password-Authentication’,
email: $(‘.signup-email’).val(),
password: $(‘.signup-password’).val(),
user_metadata: { plan: ‘silver’, team_id: ‘a111’ }.
app_metadata: { }
}
Welcome to the Community!
Did you try this? I am not sure it will work, as this likely uses the signup endpoint which doesn’t allow for it.
You would probably be better off using a post user registration hook.
Check out this topic where it is described in detail:
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.