[英]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.