Error: [auth/missing-client-identifier] This request is missing a valid app identifier, meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful.
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
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.
same problem, any updates?
@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.
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).
- run
./gradlew signingReportinandroid/directory of your app. - paste keys into the Firebase console for your app.