![](/img/trans.png)
[英]Error: signInWithPhoneNumber failed: Seconde argument "ApplicationVerifier" must be an implementation of firebase.auth.ApplicationVerifier
[英]signinwithphonenumber authentication failed
我正进入(状态
SigninwithPhoneNumber 失败:预期有 2 个参数,但得到 1 个
在这段代码中
firebase
.auth()
.signInWithPhoneNumber(phoneNumber)
.then(confirmResult =>
this.setState({ confirmResult, message: "Code has been sent!" })
)
.catch(error =>
this.setState({
message: `Sign In With Phone Number Error: ${error.message}`
})
);
};
您应该为 signInWithPhoneNumber 方法提供两个参数。 在此处的 Firebase 文档中。 您需要提供电话号码和应用验证程序。
firebase
.auth()
.signInWithPhoneNumber(phoneNumber, appVerifier)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.