How to remove captcha verification from Firebase phone auth using javascript?

前端 未结 5 2300
灰色年华
灰色年华 2020-12-18 18:56

I am using firebase phone auth for the very first time and I see captcha verification is must proceed with the process, as per firebase official documentation. Though it ser

5条回答
  •  猫巷女王i
    2020-12-18 19:28

     firebase.initializeApp(firebaseConfig);
      // Create a Recaptcha verifier instance globally
      // Calls submitPhoneNumberAuth() when the captcha is verified
      window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier(
        "recaptcha-container",
        {
          size: "invisible",
          callback: function(response) {
            submitPhoneNumberAuth();
          }
        }
      );
    

提交回复
热议问题