react-native / expo / expo-google-app-auth vs expo-google-sign-in

Viewed 591

Why does expo have two ways to authenticate with google?

It is not clear to me what the differences are between expo-google-app-auth and expo-google-sign-in.

Which one should I use for what occasion?

1 Answers

The difference is expo-google-sign-in is only available if you ejected your expo app (which is what "standalone" means) and you wouldn't need to leave your app and open a web browser to sign in.

If you want to keep using expo snack you would need to keep it from being ejected, so you should use expo-google-app-auth, which basically opens up a web browser to sign in, so it's less sophisicated than expo-google-sign-in option, but it's your only choice.

Related