Auth0 only sets the name field if the account is a social account. It does not set the name field if you are using an Auth0 database connection or custom database connection. For these kinds of connections, it requires the user to set the name in the user_metadata field.
Because of this, we need provide a configuration option for how the name will be retrieved when registering a user.
A user will input the structure using Array dot notation.
Given the following array
to get the name, using the name key, the configuration value will be just name.
To get the name using the full_name key, the configuration value will be user_metadata.full_name
Auth0 only sets the name field if the account is a social account. It does not set the name field if you are using an Auth0 database connection or custom database connection. For these kinds of connections, it requires the user to set the name in the user_metadata field. Because of this, we need provide a configuration option for how the name will be retrieved when registering a user. A user will input the structure using Array dot notation. Given the following array
to get the name, using the
name
key, the configuration value will be justname
. To get the name using thefull_name
key, the configuration value will beuser_metadata.full_name