简体   繁体   中英

How to check if the user entered a valid email address in an android app (Firebase)?

I'm creating a simple app for Android, and the authentication system is powered by Firebase.

When a user registers for a new account, the Firebase system only checks if the email is correctly formatted, and if it is, it creates a new user with that email address. But this causes the problem that the user can use an invalid email address in the email format, and Firebase does not validate it; it creates the user with that email address only even though it is invalid.

I have tried looking for many solutions online, but they are either not clear enough or are not the solution to this problem.

I'm looking for any standard process to verify an email address, or any library or dependency that does the work for me.

What exactly is meant by valid email address? do you mean a valid email service provider eg gmail? If so you can use email link to verify emails. take a look at the firebase docs: https://firebase.google.com/docs/auth/android/email-link-auth

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM