After that, phone number auth started triggering reCAPTCHA verification. Later, I disabled reCAPTCHA Enterprise in the console, but Firebase still behaves as if it's enabled. Even though appVerificationDisabledForTesting = true is set in development, production builds continue showing this error:
We are seeing the same problem. I have tried to re-enable enterprise API, and then remove all site keys, and disable API again. This doesn’t help. I have also enable user audit logs showing when we call signInWithPhoneNumber(), the identity toolkit attempts to “GetRecaptchaConfig” with request showing “version” = “RECAPTCHA_ENTERPRISE”.
have you figure out ways to solve it?
no I just turned on reCAPTCHA Enterprise, create keys again, linked project and install this package
my sms auth is not working, still stuck on this. you can not disable reCAPTCHA ENTERPRISE , only solution is to make a new Firebase project I guess if you find any solution please share with me. Some data is persist in FIREBASE Backend, even if you disable it on front end there is no going back, Once you Enable data is persist in backend which we can resolve. I have shared my findings.
Once you enable RECAPTCHA_ENTERPRISE then Firebase persist some data in the backend which we can not remove even if you disable it, SO I re-enable it again, create keys link project and install this package
const res = await identityToolkit.projects.updateConfig({ name: `projects/${projectId}/config`, requestBody: { ...currentConfig, // I never tried this line but this will protect you from overwrite your current config recaptchaConfig: { ...currentConfig.recaptchaConfig, // also never tried this line phoneEnforcementState: 'OFF', useSmsBotScore: false, }, }, });
This in result, ended up with the another error message (same as Umairbadar39 error) in my mac debug xcode environment.
Error during signInWithPhoneNumber: NativeFirebaseError: rauth/internal-error] An internal error has occurred, please try again. at signInWithPhoneNumber (
User audit logs: (debug build in mac react native debug environment) (Timestamp from bottom up)
you can see the sign in of existing account go through
GetRecaptchaConfig
VerifyIosClient
GetProjectConfig
Result 2: Previous Build already on TestFlight
At the same time, our previous compiled build is working! I have no idea why though.
User audit logs: (Testflight app we build previously) (Timestamp from bottom up)
You can see the sign in of existing account go through