Firebase用Google帐户覆盖登录

Firebase用Google帐户覆盖登录

本文介绍了Firebase用Google帐户覆盖登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在文档中似乎没有提及这一点,所有我发现的是和,我想在此确认:

There doesn't seem to be any mention of this in the documentation, and all I found was this and this, where I would like to confirm this:

如果用户通过Facebook或电子邮件/密码登录,以后通过Google登录,则其帐户登录方式将转换为Google。它只发生在Google,一个帐户的设置只有活动。

If a user signs in through Facebook or email/password and later through Google, their account sign in method is converted to Google. It only happens with Google and the setting for one account only is active.

是否打算像这样,有什么办法阻止它?

Is it intended to be like this and is there any way to stop it?

推荐答案

正如文档所述:某些电子邮件域具有可信赖的提供者。最突出的是:Google是@ gmail.com地址的值得信赖的提供商,因为它是这些电子邮件地址的唯一发行者。

As the documentation says: certain email domains have a trusted provider. Most prominently: Google is the trusted provider for @gmail.com addresses, since it's the only issuer of these email addresses.

如果用户首先注册他们的Gmail地址Facebook,后来有一个来自Google提供商的同样的gmail地址注册,后者的注册被认为是推翻前者。如果用户稍后再次使用Facebook登录,则可以链接两个帐户。

If a user first registers their gmail address with say Facebook, and later there is a registration with that same gmail address from the Google provider, the latter registration is considered to overrule the former. If the user later signs in with Facebook again, the two accounts can be linked.

据我所知,防止这种情况的唯一方法是允许多个帐户电子邮件地址。

As far as I know, the only way to prevent this is to allow multiple accounts per email address.

这篇关于Firebase用Google帐户覆盖登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 21:18