Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name Retrieval From Auth0 #11

Closed
phronesis opened this issue Oct 30, 2017 · 0 comments
Closed

Name Retrieval From Auth0 #11

phronesis opened this issue Oct 30, 2017 · 0 comments

Comments

@phronesis
Copy link
Owner

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

[
    'name'=>'Didi Umoh',
    'user_metadata'=>[
        'full_name'=>'Didi Umoh'
    ]
]

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant