is there any way to check an email id is present in firebase

183 Views Asked by At

The issue currently facing now is that, we have developed an android with firebase support and we have many users and their data. in the password reset page and need to validate whether the email id is present in the firebase or whether is it a new mail id. how to do this.. please help

1

There are 1 best solutions below

0
Thierry On BEST ANSWER

You can use fetchSignInMethodsForEmail for this.

List<String> userSignInMethods = await auth.fetchSignInMethodsForEmail(email);

It will return an empty list when the email cannot be found.