[英]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.避免它的唯一方法是为每封电子邮件启用多个帐户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.