Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 451
user60108 Avatar asked Nov 10 '20 21:11

user60108


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.

like image 68
howard Avatar answered Sep 19 '22 08:09

howard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!