有什么方法可以检查 firebase 中是否存在电子邮件 ID

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

目前面临的问题是,我们开发了一个支持 firebase 的 android,我们有很多用户和他们的数据。在密码重置页面中,需要验证电子邮件 ID 是否存在于 firebase 中,或者它是否是新邮件 ID。怎么做..请帮忙

您可以使用 fetchSignInMethodsForEmail 来实现。

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

当找不到邮件时,它会return一个空列表。