How to Remove Captcha Verification from Firebase Phone Auth Using JavaScript

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

Firebase provides two properties for captcha size.
1. Normal - which is visible and captcha code visible to the user and manually perform the captcha process.
2. Invisible - which is invisible to the user, automated captcha process, and code will auto render in DOM.

window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier(
    "recaptcha-container", {
        size: "invisible"
    }
);

How to disable reCaptcha in firebase phone-auth (OTP) android?

I have ever met this issue in my project. You may follow the steps below to solve the problem.
1. In the Google Cloud Console, enable the Android DeviceCheck API for your project. The default Firebase API Key will be used, and needs to be allowed to access the DeviceCheck API.
2. If you haven't yet specified your app's SHA-256 fingerprint, do so from the Settings Page of the Firebase console. Refer to Authenticating Your Client for details on how to get your app's SHA-256 fingerprint.
3. Also, need to perform additional steps: Firebase Project Settings > App check > and Register firebase project in SafetyNet and Play Integrity register with default time token 1 hour.
Hope this works!

How to Use Firebase Phone Authentication without recaptcha in React Native

Acctually, you can't remove captcha verification using default authentication. Use anonymous authentication to avoid captcha letters to appear. But You can also make it invisible like below.

window.recaptchaVerifier = new firebase.auth.RecaptchaVerifier(
    "recaptcha-container", {
        size: "invisible"
    }
);



Related Topics



Leave a reply



Submit