The latest version of Firebase Authentication supports email verification.
If the identity provider (email address + password, google) supports additional verification of the email address, this information is provided in the API and in the security rules. (**)
For example, the JavaScript API has an emailVerified property , which you can check in your code:
firebase.auth().currentUser.emailVerified
True
In the security rules, you can access both the email address and the check, which makes some possible use cases possible. With these rules, for example, only an authenticated, verified Gmail user can write his profile:
{ "rules": { ".read": "auth != null", "gmailUsers": { "$uid": { ".write": "auth.token.email_verified == true && auth.token.email.matches(/.*@gmail.com$/)" } } } }
(**) This applies to your Google Account and email + password. As far as I know, Facebook will only show the email address if it is verified, so you can rely on it.
source share