How to remove captcha verification from Firebase phone auth using flutter web?

6,918

You can remove reCaptcha by Enabling the Android Device Verification API in Your Project on google cloud console. You can do that by Adding Your Project there.

After that you should also add SHA-256 key in Your Firebase Project in Project Setting.

Now there will be no reCaptchaa to verify to that your are not a robot.

Share:
6,918
Darshan Prajapati
Author by

Darshan Prajapati

Updated on December 22, 2022

Comments

  • Darshan Prajapati
    Darshan Prajapati over 1 year

    I wants to remove or a make invisible google recaptcha verfication. My code for verifying mobile number and sign in

    await FirebaseAuth.instance.verifyPhoneNumber(
        phoneNumber: "+91${customMobileController.text.toString()}",
        timeout: const Duration(seconds: 5),
        verificationCompleted: verificationCompleted,
        verificationFailed: verificationFailed,
        codeSent: codeSent,
        codeAutoRetrievalTimeout: codeAutoRetrievalTimeout);
    

    For sign in

    var authCredential = PhoneAuthProvider.getCredential(
        verificationId: verificationId,
        smsCode: otp,
    );
    
    await FirebaseAuth.instance
        .signInWithCredential(authCredential)
        .then((value) {})
        .catchError((error) {});
    
  • Pratik Butani
    Pratik Butani about 3 years
    Thank you. Hope it will work for Mobile Phone too.
  • Pratik Butani
    Pratik Butani about 3 years
    What about ios?
  • Rajesh M P
    Rajesh M P about 3 years
    How can we enable this for iOS platform?
  • Nijat Mursali
    Nijat Mursali almost 3 years
    Is there any way to implement this for IOS?
  • genericUser
    genericUser over 2 years
    Adding a link to Youtube simple example youtube.com/watch?v=opBwTxicw1k
  • Gicu Mironica
    Gicu Mironica over 2 years
    Did anyone figure it out how to do it for iOS?
  • Vinoth Vino
    Vinoth Vino about 2 years
    In iOS, Firebase will verify by way of sending silent push notifications to the device - firebase.google.com/docs/auth/ios/…