Firebase Detecting if user exists

后端 未结 4 1111
天涯浪人
天涯浪人 2021-01-11 12:16

How Can I Check user exists in Firebase auth in Signup Button via react native?

This is my Login Page Code:

export de         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-11 12:44

    You need to use the fetchSignInMethodsForEmail API. It takes an email and returns a promise that resolves with the list of providers linked to that email if it is already registered: https://firebase.google.com/docs/reference/js/firebase.auth.Auth.html#fetchsigninmethodsforemail

提交回复
热议问题