I have turned on the “requires username” switch in the database - Username-Password-Authentication settings. Auth0 indeed asks the user for a username when signing up now.
However, when fetching the user using the Angular SDK, the nickname on the user object does not contain this username, instead it contains the first part of the email address. For example:
Instead of the “fakemail”, I would have expected the provided username.
How can I add this to the nickname field / add the username to the user object?
I have been playing around with the Auth0 Rules but did not manage to create the expected behaviour.
Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael.
In this case, it is a truncated version of the name attribute.