如何知道用户是否通过 Google 签名?

问题描述 投票:0回答:1

在客户端,在 Flutter 中

  1. 用户使用 Fireabase Auth 通过电子邮件登录 Google [电子邮件受保护]
  2. 用户退出
  3. 用户使用
    [email protected]
    调用 fetchSignInMethodsForEmail,它会返回一个空列表
  4. 尝试创建一个新帐户,现在使用电子邮件和密码 [电子邮件受保护]
  5. 因错误而失败
    Signup failed [firebase_auth/email-already-in-use] The email address is already in use by another account.

在第3步中,为什么它返回一个空列表?我希望

['google']

我的目标是告诉用户

Hey, use Google Authentication with this email
,以防他们忘记。 这可能吗?

flutter firebase authentication firebase-authentication google-signin
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.