Username aliases

Does Auth0 support username aliases? Sorry I couldn’t find it from docs / search. Essentially I want to create a user account and have multiple emails / phone numbers set for the account and any of them should be able to be used as username. Wonder if this is possible directly in Auth0?

Auth0 does support account linking. Basically, within the user profile, you’ll have an identities array with the specific information from the several identity providers. As an example, after linking a google account with an sms account, it would look like:

      "provider": "google-oauth2",
      "user_id": "115015401343387192604",
      "connection": "google-oauth2",
      "isSocial": true
      "profileData": {
          "phone_number": "+14258831929",
          "phone_verified": true,
          "name": "+14258831929"
      "user_id": "560ebaeef609ee1adaa7c551",
      "provider": "sms",
      "connection": "sms",
      "isSocial": false

And both would share the same user profile. You can read more about it here:

Possible to link two auth0 email based identities and have them both authenticate using same password?

Other issue is that username aliases don’t usually start out as a second existing email/password account you can link to a primary identity. Instead you have one auth0 email/password account then you’d like to add a second email to that account as a username alias. How to do this? Create a temp user with a dummy password and then link to it? A bit of a hack.

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?