I am creating a login form using Auth0 Lock. In the Auth0 dashboard, I made it so it required a username as well. However, this is getting stored into the profile.nickname. I am trying to make it so that users can edit their profile information, but as of right now Auth0 does not allow you to update the nickname field with the api. However, it allows you to edit the username field which I’m assuming should be able to retrieve this. How do I access this username field? My scopes are profile, email, openid, and user_metadata, but none of these return the username attribute.
My other option is to not use the username field, and to create an additionalSignUp field for users to put in a username. This way I can edit it since it’ll be stored into user_metadata instead. However, how do I make these usernames unique? How do I make it so the entry to an additionalSignUpField is unique?