Firebase管理多个身份验证提供程序 [英] Firebase Manage Multiple auth provider

查看:197
本文介绍了Firebase管理多个身份验证提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Android应用程序,使用Facebook,Google和电子邮件/密码等Firebase帮助进行多重身份验证。每种身份验证都可以单独使用。但是,当我登录谷歌,然后退出,当我使用Facebook登录使用相同的电子邮件ID登录后。




$ b

它说。


com.google.firebase.auth.FirebaseAuthUserCollisionException:
帐户已经存在相同的电子邮件地址,但不同的
登录凭据。

我想要做的就是在用户合并账户时尝试通过使用相同的电子邮件ID与不同的身份验证提供程序登录。



是,有任何方法可以通过使用firebase来处理这个。



请帮助。

解决方案

只是在这里改变..多数民众赞成在所有..你的欢迎




I am working on android application that uses multiple authentication with the help of firebase like Facebook, Google and Email/Password. Each authentication works well in separate ways.

But, When I am login with google and then signed out and later when i am using facebook to do login by using same Email Id..

It says.

com.google.firebase.auth.FirebaseAuthUserCollisionException: An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.

All i want to do is, Merge the account when user try to login with different authentication provider by using same email id.

Is, there any way to handle this by using firebase.

Please Help.

解决方案

just change it here.. thats all.. you are welcome

这篇关于Firebase管理多个身份验证提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆