我按照Firebase文档实现了多个身份验证提供程序(Google和Facebook),我遇到了我不知道如何解决的问题 .
假设我的新用户有谷歌提供商和Facebook与不同的电子邮件可以执行以下登录流程?
-
用户输入第一个应用并使用您的Google帐户解析登录信息
-
Firebase创建一个帐户并将Google链接到她的提供商 .
-
用户退出应用程序 .
-
用户再次执行登录应用程序,但这次他选择Facebook提供商(其中有不同的电子邮件谷歌) .
-
firebase将Facebook提供商与已经链接到Google提供商的帐户相关联 .
1 回答
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 .