Firebase Auth为相同的电子邮件创建重复的用户 [英] Firebase Auth creating duplicate users for same email

查看:181
本文介绍了Firebase Auth为相同的电子邮件创建重复的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当用户首次通过Facebook上的Firebase身份验证登录时,将创建具有唯一UID的重复用户。



奇怪的问题是我几个月前实施了这个应用程序的登录。一个无关的问题使我改变了我的Firebase应用程序。自那时以来,新登录创建重复。这对我来说很难解决,因为我已经实现了用于登录的代码使用Facebook SDK,并没有太多的揭示什么是隐藏的。此外,Firebase还有一个选项可以阻止用户使用来自不同提供商的同一封电子邮件创建重复的帐户。但正如你所看到的,我在初次登录时遇到了错误的用户。有没有人见过这个问题?我想这个问题是怎么解决的,当问题出现在使用Facebook SDK的时候? 解决方案

有两个调用signInWithCredential。仅供参考,当用户已经登录时,这不会导致问题。因此,如果您遇到同样的问题,可能是一个沉默的错误。


When a user first logs in through Facebook on Firebase Auth, duplicate users with unique UID's are created.

The peculiar issue is that I implemented login for this app months ago. An unrelated problem caused me to change my Firebase app. Since then new logins create duplicates. This is very hard for me to solve as the code I have implemented for login uses Facebook SDK and theres not much revealing whats under the hood. Also Firebase has an option that prevents users from creating duplicate accounts with the same email from different providers. But as you can see I am getting an erroneous user upon that initial login. Has anyone ever seen this problem? How am I suppose to fix it, when the problem is arising using the Facebook SDK?

解决方案

There were two calls to signInWithCredential. FYI, this does not result in problems when the user has already logged in. So it could be a silent error that creeped up on you if you have the same problem.

这篇关于Firebase Auth为相同的电子邮件创建重复的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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