简体   繁体   English

是否可以将PhoneAuth链接到Firebase中的现有用户帐户?

[英]Is it possible to link PhoneAuth to an existing user account in Firebase?

我一直在进行登录过程,想知道是否可以将PhoneAuthCredential链接到现有的Firebase用户帐户。

You can link a phone number to an existing Firebase user, provided the phone number is not already linked to another user. 您可以将电话号码链接到现有Firebase用户,前提是该电话号码尚未链接到另一个用户。

Refer to https://firebase.google.com/docs/auth/android/account-linking#link-auth-provider-credentials-to-a-user-account : 请参阅https://firebase.google.com/docs/auth/android/account-linking#link-auth-provider-credentials-to-a-user-account

The credential you link is the phone credential here: mAuth.getCurrentUser().linkWithCredential(phoneAuthCredential)... 您链接的凭证是此处的电话凭证: mAuth.getCurrentUser().linkWithCredential(phoneAuthCredential)...

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

相关问题 将现有用户与Facebook帐户关联的正确方法 - Proper way to link existing user with facebook account Xamarin 表单的 Xamarin Firebase PhoneAuth - Xamarin Firebase PhoneAuth for Xamarin Forms 如何在 Firebase 中将 emailAndPasswordAuth 与 PhoneAuth 合并? - How to merge emailAndPasswordAuth with PhoneAuth in Firebase? Firebase管理员和用户帐户 - Firebase admin and user account Firebase PhoneAuth。如何使用密码登录 - Firebase PhoneAuth.How to login with password Firebase phoneAuth在生产版本中出现错误 - Firebase phoneAuth gives error in production build Android Firebase身份验证:将匿名帐户与手动用户链接仍在Firebase控制台上创建2个帐户 - Android firebase auth: Link anonymous account with manual user still creating 2 accounts on firebase console SMS Retriever API无法与Firebase PhoneAuth一起使用 - SMS Retriever API not working with Firebase PhoneAuth 如何在phoneauth中从firebase中检索号码 - how to retrieve number from firebase in phoneauth 是否可以将我现有的 Firebase 项目(iOS 和 Android)集成到单独的谷歌分析帐户而不会丢失当前数据 - Is it possible to integrate my existing Firebase project(iOS and Android) to separate google analytic account without losing current data
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM