Firebase身份验证:链接多个提供

时间:2016-11-03 01:01:13

标签: firebase-authentication

我按照Firebase文档实现了多个身份验证提供程序(Google和Facebook),我遇到了一个我不知道如何解决的问题。

假设我的新用户有Google提供商,而且Facebook上有不同的电子邮件可以执行以下登录流程吗?

  1. 用户输入第一个应用并使用您的Google帐户解析登录
  2. Firebase创建一个帐户并将Google链接到她的提供商。
  3. 用户退出应用程序。
  4. 用户再次登录应用程序,但这次他选择了Facebook提供商(谷歌的电子邮件不同)。
  5. firebase将Facebook提供商与已经链接到Google提供商的帐户相关联。

1 个答案:

答案 0 :(得分:0)

Firebase documentation has a complete page dedicated to account linking。页面中的示例链接到Github repo where you can see the code in the context of an entire app that demonstrates it

在这里复制文档几乎没有用处。如果您在执行特定步骤时遇到问题,请分享您已完成的工作以及minimal code that shows where you are stuck

相关问题