react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

Error: [auth/missing-client-identifier] This request is missing a valid app identifier, meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful.

Open IMTPL opened this issue 1 year ago • 3 comments

We are integrating phone auth in our application.We faced an error while integrating the error problem is [Error: [auth/missing-client-identifier] This request is missing a valid app identifier, meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful. Please try again, or check the logcat for more details.]

We had also enable Google Play Integrity API & followed the document also

Here's what we integrated into it android/app/build.gradle apply plugin: 'com.google.gms.google-services implementation(platform("com.google.firebase:firebase-bom:33.2.0")) implementation 'com.google.android.gms:play-services-safetynet:18.0.1'
implementation 'com.google.firebase:firebase-auth'

Code:- const sendOtp = async () => { try { const confirmation = await auth().signInWithPhoneNumber(phoneNumber); setVerificationId(confirmation.verificationId); console.log('OTP sent'); } catch (error) { console.error(error); } }; const confirmCode = async () => { try { const credential = auth.PhoneAuthProvider.credential( verificationId, code, ); await auth().signInWithCredential(credential); console.log('Phone authentication successful'); } catch (error) { console.log(error); } };

We integrated into react native version 0.75.3

I completed all the basics check what is needed for these phone auth otp integration

IMTPL avatar Sep 12 '24 14:09 IMTPL

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Oct 10 '24 15:10 github-actions[bot]

same problem, any updates?

IamMax279 avatar Oct 19 '24 19:10 IamMax279

@IamMax279 there will not be updates on your project not having a valid app identifier, you have to make sure your app has a valid app identifier.

mikehardy avatar Oct 19 '24 19:10 mikehardy

There's plenty of resources to help you debug this particular issue, for example see this stackoverflow thread for potential solutions.

One that I've seen a few times; replace your sha-1 and sha-256 keys (could be incorrect for a few reasons).

  1. run ./gradlew signingReport in android/ directory of your app.
  2. paste keys into the Firebase console for your app.

russellwheatley avatar Oct 24 '24 15:10 russellwheatley