我正进入(状态
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}`
})
);
};