简体   繁体   中英

How to check if a user is already registered in Firebase Authentication

I am using firebase authentication for application registration. If someone who registered for the application wants to register again, I want to give a warning that this mail is being used, how can I handle it?

Which platform do you implement... and firebase has various platform samples with all the features. The firebase GitHub page is here .it's hard to find you needed one try this

To check whether a given email address is already registered in Firebase, you can call the fetchSignInMethodsForEmail methods .

The flow for this is typically that:

  1. You ask/determine the email address of the user.
  2. You call fetchSignInMethodsForEmail to see if there's any provider for the email address.
  3. You show a page where the user can pick from the methods that you got back in step 2.

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