FirebaseUI-Android icon indicating copy to clipboard operation
FirebaseUI-Android copied to clipboard

Optionally require email addresses to be verified

Open alfongj opened this issue 9 years ago • 9 comments

Provide optional setting to require email addresses to be verified in order for a user to sign in with email and password.

alfongj avatar Sep 20 '16 05:09 alfongj

This can be done with Play Services 9.6 using FirebaseUser#sendEmailVerification() and FirebaseUser#isEmailVerified().

SUPERCILEX avatar Sep 22 '16 02:09 SUPERCILEX

@SUPERCILEX good point. I think @alfongj was hoping we could provide this as a SignInIntentBuilder option to fail sign in for unverified email addresses and have some UI to send the email automatically.

samtstern avatar Sep 22 '16 15:09 samtstern

Yeah, I just wanted to point out an easy way to handle the verification for anyone submitting a PR. The UI part seems like it will be difficult because we would need to check periodically with isEmailVerified and not let let the user in if it isn't. Anyway, food for thought.

SUPERCILEX avatar Sep 22 '16 18:09 SUPERCILEX

Hm, was this suggestion about the automated verification email, or more like if you have no invite, you can’t create an account?

Kurt29 avatar Sep 18 '17 16:09 Kurt29

@Eragon29 I think the suggestion to to help with the entire flow:

  • If a user tries to sign in but has an unverified email, send them the verification and show some "please check your email screen"
  • When the user has verified and returns to the app, we should detect verification and allow them to proceed.

samtstern avatar Sep 18 '17 17:09 samtstern

@samtstern Too bad Would be nice to have a way to manually verify emails. But it’s probably not that important and there are ways to work around this “issue”

Kurt29 avatar Sep 18 '17 17:09 Kurt29

It would be nice to request email verification in the AuthUI builder, such as

new AuthUI.IdpConfig.EmailBuilder() .setRequireName(false) .setRequireEmailVerification(true) // not in the builder atm .build()

And this library will handle the rest.

baole avatar Nov 01 '18 09:11 baole

What is the status of this feature request after almost 4 years? I just started integrating Firebase Auth and was really surprised after finding out verification emails are not sent out automatically. It's a basic functionality that Firebase Auth should offer effortlessly.

AndrazP avatar Apr 22 '20 22:04 AndrazP

@AndrazP no update, I do think this would be useful it's just that FirebaseUI has been focused on stability and adding support for more identity providers for the last few big releases.

samtstern avatar Apr 23 '20 14:04 samtstern