Auth0 Lock "Last time you logged in with" Screen Shows Email Instead of Username

Since my Auth0 user database requires usernames, the Lock widget correctly asks the user to sign in with Username/Password instead of Email/Password. However, the “Last time you logged in with” screen still displays Email instead of Username. The Emails used by our application are dummy emails and should never be seen by the user, so I’m looking for any way that I could force the Username to be displayed – even if requires some hacking around what the Lock widget usually does.

Maybe you can try to remove the email claim from the id_token using a rule? I’m not sure that will work, but it’s worth trying.

If you can remove the email, we’ll display the name claim instead: