Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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) {});
like image 621
Darshan Prajapati Avatar asked Jul 21 '20 17:07

Darshan Prajapati


People also ask

How do I turn off reCaptcha in Firebase phone Auth OTP Web?

Don't forget to go in Firebase Project Settings > App check > and Register firebase project in SafetyNet and Play Integrity register with default time token 1 hour and u will remove reCaptcha from phone auth OTP!

How do I get rid of reCaptcha on Flutter Web?

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.


1 Answers

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.

like image 52
Bubloo Avatar answered Sep 20 '22 03:09

Bubloo