Error: [auth/missing-client-identifier] This request is missing a valid app identifier, meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful. #8013
Labels
platform: android
plugin: authentication
Firebase Authentication
resolution: solution-provided
type: bug
New bug report
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
The text was updated successfully, but these errors were encountered: