Firebase Prevent Creating Account Before Email Verification
I am working on an android project that includes user sign-in with email. But the problem is this. When I create test account it immediately appears in the firebase authentication
Solution 1:
If you require only verified accounts, then you should enforce it via security rules.
"$uid": {
".read": "auth != null && auth.uid == $uid && auth.token.email_verified === true",
".write": "auth != null && auth.uid == $uid && auth.token.email_verified === true"
}
If you don't like that the account was created and discarded, you can write an offline job using the Firebase Admin SDK to clean up unverified accounts after some time.
You can't verify the email before creating the account.
Post a Comment for "Firebase Prevent Creating Account Before Email Verification"