简体   繁体   English

如何在 Firebase 中更改用户的提供程序?

[英]How to change the provider for a user in Firebase?

I've got an app built on Firebase which uses Firebase authentication.我有一个基于 Firebase 的应用程序,它使用 Firebase 身份验证。

Both Google and Email providers are enabled. Google 和电子邮件提供商均已启用。

I have a user that had an email login that has somehow ended up with Google as their authentication provider.我有一个用户的电子邮件登录不知何故最终以 Google 作为他们的身份验证提供程序。

They do not want to log in with google.他们不想用谷歌登录。

If I look up the user on the authentication page in Firebase I can see the user in the Users tab and the Google provider listed for them.如果我在 Firebase 的身份验证页面上查找用户,我可以在“用户”选项卡中看到该用户以及为他们列出的 Google 提供商。

How can I switch them back to having an email provider?如何将他们切换回拥有电子邮件提供商?

The Google provider is a trusted provider. Google 提供商是trusted提供商。 That means if a user has registered with his email first and later signis in with his Google account it will overrid the first provider.这意味着如果用户首先使用他的电子邮件注册,然后使用他的 Google 帐户登录,它将覆盖第一个提供商。 The user won't be able to sign in again with his password.用户将无法使用他的密码再次登录。

The only way to awoid it is to enable multiple accounts per email.避免它的唯一方法是为每封电子邮件启用多个帐户。

You can read more about it on this answer.您可以在答案中阅读更多相关信息。

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

相关问题 如何防止 firebase auth 更改用户提供程序 - flutter firebase - How to prevent from firebase auth to change user provider - flutter firebase Firebase 用户身份验证提供程序自动更改为电子邮件。 怎么改回来? - Firebase Authentication Provider for a User changed automatically to E-Mail. How to change back? 如何使用Google提供程序在Firebase上重新验证用户? - How to re-authenticate a user on Firebase with Google Provider? Firebase:如何检查用户身份验证是否被其他提供商覆盖? - Firebase: How to check if a user auth was overriden by another provider? 用户 state 管理与 firebase 和提供者 - User state managment with firebase and provider 如何删除从 Facebook 提供商注册的 Firebase 用户? - How to delete Firebase User, registered from Facebook provider? 如何在Swift中使用新的Firebase 3.2.1通过我的Firebase应用对用户进行身份验证以指定提供者(Facebook,Google) - How to Authenticate user to my Firebase App specifying the provider (Facebook, Google) with new Firebase 3.2.1 in Swift 如何在 dart firebase 中更改用户的电子邮件和密码 - How to change the email and the password of the user in dart firebase 如何在 firebase 中更改 user.getid - How to change user.getid in firebase 检查用户是否使用了另一个提供者的 firebase - Check if user has used another provider firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM