Reputation: 663
I`m developing a react-native project and it has configured 2 firebase projects for production and testing. I`m getting 'access_token audience is not for this project' error while trying to authenticate from google via firebase
let authProvider = Firebase.auth.GoogleAuthProvider.credential(
null,
authToken
);
let responseSignInWithCredential = await
Firebase.auth().signInWithCredential(
authProvider
); //error getting from here!
That error is getting only I configured it with testing environment. Also Wonder Its affected previously build version as well (those are worked without any fault last week).
Upvotes: 3
Views: 5636
Reputation: 663
I have removed debug.keystore located in .android folder and again generated a SHA-1 and added it to firebase project.Its worked
Upvotes: 2
Reputation: 9
The development config has the SHA-1 for the debug build, and the production config has the SHA-1 for the release build. This error occurs when you use the the debug build with the prod config. make sure your build's SHA-1 fingerprint match the one in Firebase project
Upvotes: 0