Reputation: 4827
I am creating user password registration in Firebase but have a specific scenario that I cannot understand.
How to solve this scenario?
Upvotes: 0
Views: 462
Reputation: 599661
Email verification is not a required step when using the email+password provider, so in step 1 the user is signed in with a valid account. You can block them from accessing data based on the emailVerified
property, but the account will still exist. If you want to support this scenario with the email+password provider, you'll have to occasionally delete unverified email addresses with the Admin SDK.
Alternatively consider using the email link provider, which essentially combines verifying their email address with signing in. And would mean that in step 4 the user is actually signed in.
Upvotes: 1