【发布时间】:2020-05-21 06:57:24
【问题描述】:
我正在尝试构建一个 React Native 应用程序和 firebase 身份验证。我收到错误:
RecaptchaVerifier 仅在支持 DOM 的浏览器 HTTP/HTTPS 环境中受支持
auth
.signInWithPhoneNumber(number, appVerifier)) // <- this is where captcha is added
.then((result) => {
this.setState({ confirm: result });
this.setState({ buttonText: "Verify OTP" });
this.setState({ isLoading: false });
})
.catch((err) => {
console.log(`Error in phone auth: ${err}`);
});
我使用的firebase版本是"react-native-firebase": "^5.6.0"
当我删除第二个参数时,它会给出一个错误,指出需要两个参数,找到一个
【问题讨论】:
标签: firebase react-native firebase-authentication react-native-android react-native-firebase