无法将第二个Google帐户链接到现有Firebase用户(已链接身份验证/提供商)

无法将第二个Google帐户链接到现有Firebase用户(已链接身份验证/提供商),firebase,firebase-authentication,Firebase,Firebase Authentication,我正在尝试将第二个Google帐户链接到一个现有的Firebase用户,该用户拥有活跃的Google Auth provider 使用第一个Google帐户登录用户: auth.signInWithPopup(新建firebase.auth.GoogleAuthProvider()) 然后我尝试将第二个Google帐户链接到经过身份验证的用户: user.linkWithPopup(新的firebase.auth.GoogleAuthProvider()) linkWithPopup承诺因错误而

我正在尝试将第二个Google帐户链接到一个现有的Firebase用户,该用户拥有活跃的Google Auth provider

  • 使用第一个Google帐户登录用户:

    auth.signInWithPopup(新建firebase.auth.GoogleAuthProvider())

  • 然后我尝试将第二个Google帐户链接到经过身份验证的用户:

    user.linkWithPopup(新的firebase.auth.GoogleAuthProvider())

  • linkWithPopup承诺因错误而被拒绝:

    {code:“身份验证/提供程序已链接”,消息:“用户只能链接到给定提供程序的一个标识。”}


  • 这是否意味着Firebase不支持将同一提供商的多个不同配置文件链接到一个用户?很快就会添加吗?

    正如您的
    错误所述,您不能将多个帐户链接到单个提供商。每个提供商只能有一个帐户。我们不知道将来是否会添加此选项,但目前它是如何工作的

    希望能有帮助