I am building an Android application in a country where many potential users will not have email accounts, and phone numbers are typically the primary account identifiers. Is there an option to use a phone number rather than an email address as the primary user account key?
This seems like a fairly simple question, but I have looked through the documentation and have not found anything. The closest I have found is using passwordless authentication in the Android app, but that was deprecated due to legitimate security concerns. Aside from moving back to that model, I would be content with the standard login flow where users enter a phone number and password to register a new account, and then they can optionally verify the phone number using a one-time password over SMS. Note the distinction here from 2-factor authentication, where in my case mobile would be the sole factor, and SMS is used for verification of phone number rather than authentication.
The option of requiring a username in the database is a step in the right direction. Can this be done by creating a custom database, for which I think I would need to upgrade my Auth0 account, or is it possible through some way I’m missing.
p.s. I know that essentially all my users will have an email associated with an account on their Android phone, but these are merely used to lg in once to the OS and not checked for actual email. It’s common practice for multiple users to share the same phone account, and store owners may even set this up for their customers, so this email account would not be a good way for me to manage my users.
EDIT: I suppose my question is very similar to question #9859, but the answer did not fit my situation. I am not looking for mullti-factor. I am looking for single factor where that factor is a phone number, not email. https://community.auth0.com/questions/9859/login-with-phone-number-and-password.