Javascript Firebase PhoneAuthentication未返回验证码

Javascript Firebase PhoneAuthentication未返回验证码,javascript,firebase,firebase-authentication,Javascript,Firebase,Firebase Authentication,我尝试使用firebase和Angular创建电话身份验证。设置recaptcha验证器和电话号码并传递给firebase.auth.signInWithPhoneNumber()函数后。它只返回验证Id,不返回验证码,也不向我的号码发送短信 onSignInSubmit(phoneNumber) { this.recaptcha = new firebase.auth.RecaptchaVerifier('recaptcha-container', { 'size' : '

我尝试使用firebase和Angular创建电话身份验证。设置recaptcha验证器和电话号码并传递给firebase.auth.signInWithPhoneNumber()函数后。它只返回验证Id,不返回验证码,也不向我的号码发送短信

onSignInSubmit(phoneNumber) {
    this.recaptcha = new firebase.auth.RecaptchaVerifier('recaptcha-container', {
      'size' : 'invisible',
      'callback': function(response) {
        // reCAPTCHA solved, allow signInWithPhoneNumber.

      }
    });

    this.afauth.auth.signInWithPhoneNumber(phoneNumber, this.recaptcha).then((confiramtionResult) => {
      console.log(confiramtionResult);
    });
  }

您必须向用户索要短信代码。 用户提供后,您可以调用:

var code = getCodeFromUserInput();
confirmationResult.confirm(code).then(function (result) {
  // User signed in successfully.
  var user = result.user;
  // ...
}).catch(function (error) {
  // Error occurred.
});

我以用户身份提供了我的电话号码,但我没有收到Firebase的任何短信。你使用的是白名单上的电话号码吗?我正在使用白名单上的电话号码,但它没有遵循感谢信息中的几个步骤