如何在 firebase.auth 中更新用于身份验证的用户电话号码?
Firebase 给出方法:
updatePhoneNumber(phoneCredential)
Run Code Online (Sandbox Code Playgroud)
但是我们需要给 phoneCredential。此凭据需要对象:
interface AuthCredential {
providerId: string;
signInMethod: string;
}
Run Code Online (Sandbox Code Playgroud)
这个手机凭据中必须有什么,我尝试发送
providerId: 'phone';
signInMethod: 'phone';
Run Code Online (Sandbox Code Playgroud)
这是行不通的;(
javascript authentication firebase typescript firebase-authentication