小编Vla*_*kov的帖子

如何在 firebase.auth (js, ts) 中更新用户电话号码

如何在 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

4
推荐指数
2
解决办法
4018
查看次数