# Best Practice - Logging In - Using email or username?

**URL:** <https://community.auth0.com/t/best-practice-logging-in-using-email-or-username/198417>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [March 27, 2026, 4:12pm UTC](https://community.auth0.com/t/best-practice-logging-in-using-email-or-username/198417 "2026-03-27T16:12:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![admin85](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/admin85/32/72656_2.png) [@admin85](https://community.auth0.com/u/admin85)\
**Post date:** [March 27, 2026, 9:08pm UTC](https://community.auth0.com/t/best-practice-logging-in-using-email-or-username/198417/4 "2026-03-27T21:08:45Z")

</div>

Hi Gerald,

Thanks for providing insight into the process(es) involved with changing a user’s email address!

I definitely want to avoid any possible issues that may arise from the user changing their email address. Ideally, I want to maintain the original account if possible as I’ll be using the Auth0 id (_ **ClaimTypes.NameIdentifier** _ ) value as key for any user-specific data being stored. I’m assuming this would change as well when a new account is created with the updated email?

I see Auth0 has a “username” option to use as their login versus the email address. I’m thinking that might be the only way to maintain the integrity of the original account while allowing the user to change their email. However, it appears John from this post is advising against using a “username” instead of an email as the login, but I’m not sure why…

> [@Login identifier as either username or email](https://community.auth0.com/t/login-identifier-as-either-username-or-email/93609):
>
> We currently are set up to utilize email as the login identifier and that works. We are expecting to roll out a new social component to our web app and would like to utilize the username field in order to not require users to make their email public. Is it possible to have the login page work with either email or username being typed into the identifier page: [image]

Just wanted to determine the best approach for maintaining the user’s Auth0 id (_ **ClaimTypes.NameIdentifier** _ ) at the time of creation while allowing them to update their email (or other related info) when needed.

Thanks,

Josh

---

_[View the full topic](https://community.auth0.com/t/best-practice-logging-in-using-email-or-username/198417)._
