@react-native-google-signin/google-signin - A non-recoverable sign in failure occurred extra solution

Hi everyone & dev team

I was getting A non-recoverable sign in failure occurred on android, and solved it a different way than in the guide so I wanted to share it

basically when I ran it in IOS it gave me a much more descriptive error message and it looked like it was confusing the IOS and Web credentials

So what I did was stick the GoogleSignin.configure into a ternary statement:

Platform.OS === “ios”
? GoogleSignin.configure({
scopes: [“https://www.googleapis.com/auth/userinfo.profile”],
iosClientId: googleIOSClientId,
: GoogleSignin.configure({
scopes: [“https://www.googleapis.com/auth/userinfo.profile”],
webClientId: googleWebClientId,

It may not be the correct way to do it, but it does work if anyone gets tripped up at this stage, also expo dev team please feel free to critique my quirky solution.