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) {});
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!
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With