简体   繁体   English

单个用户可以在 Firebase 身份验证中将多个电话号码链接到他的帐户吗?

[英]Can a single user have multiple phone numbers linked to his account in Firebase auth?

This section in Firebase documentation shows how to link a single account to multiple auth providers. Firebase 文档中的 这一部分展示了如何将单个帐户链接到多个身份验证提供程序。 For example, a user who signed in with a password can link a Google account and sign in with either method in the future.例如,使用密码登录的用户可以关联 Google 帐户并在以后使用任一方法登录。 But it doesn't say anything about linking two emails or two phone numbers to the same account.但它没有说明将两个电子邮件或两个电话号码链接到同一个帐户。 So, I was asking if it was possible to link multiple credentials of the same auth providers to a single account.因此,我问是否可以将同一身份验证提供者的多个凭据链接到一个帐户。

A similar question has been asked previously here , but it has no answers!以前在这里问过类似的问题,但没有答案!

Currently, there is no way you can merge two Firebase accounts created with two different phone numbers into a single one.目前,您无法将使用两个不同电话号码创建的两个 Firebase 帐户合并为一个帐户。

On the other hand, when it comes to authentication with email and password, by default, you can use one account per email address.另一方面,在使用 email 和密码进行身份验证时,默认情况下,每个 email 地址可以使用一个帐户。 This is done to prevent users from creating multiple accounts using the same email address with different authentication providers.这样做是为了防止用户使用相同的 email 地址通过不同的身份验证提供商创建多个帐户。 However, this can be changed in the Firebase console, in the "Sign-in method" tab, inside the Authentication section.但是,这可以在 Firebase 控制台的身份验证部分内的“登录方法”选项卡中进行更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM