首页 文章

React Native js auth错误

提问于
浏览
0

我是React Native的初学者 . 我正在开发一个应用程序,并使用Firebase实现基于电话号码的身份验证 .

根据Firebase文档,我已在登录表单中实现了代码更改 .

onButtonPress(){
    const{pnum} = this.state;
    var appVerifier = new firebase.auth.RecaptchaVerifier('phonerecaptcha', {
      'size': 'invisible',
      'callback': function(response) {
        // reCAPTCHA solved - will proceed with submit function
        onSignInSubmit();
      }
    });//window.recaptchaVerifier;
    firebase.auth().signInWithPhoneNumber(pnum,appVerifier)
    .then(function (confirmationResult) {
      this.confirmationResult = confirmationResult;
    }).catch(function (error) {

    })
  }

当我向Firebase提交并发送请求时,这是我在控制台中收到的错误 .

找不到变量:document wc E:\ reactNative \ prithivi \ thala \ node_modules \ @firebase \ auth \ dist \ auth.js:28:644 Ul E:\ reactNative \ prithivi \ thala \ node_modules \ @firebase \ auth \ dist \ auth.js:269:784 hm E:\ reactNative \ prithivi \ thala \ node_modules \ @ firebase \ auth \ dist \ auth.js:277:402 d E:\ reactNative \ prithivi \ thala \ node_modules \ @firebase \ AUTH \ DIST \ auth.js:277:702

无法找到解决此问题的任何指针 .

1 回答

相关问题