Home > database >  Expo integration with Google Sign In
Expo integration with Google Sign In

Time:11-30

I am trying to add login via Google account to my application. I have encountered a problem. Expo offers two solutions.

  1. Google (https://docs.expo.dev/versions/latest/sdk/google-sign-in/) - This can only be used in a development environment. I have used it but it does not work in a standalone application, in my case it throws the error "redirect_uri_mismatch" /

  2. GoogleSignIn (https://docs.expo.dev/versions/latest/sdk/google-sign-in/) - Doesn't work in the emulator so I can't add it to the application because I can't fix potential errors.

My question is what the hell library should I use?

I have already tried expo eject and use Google Sign In from React Native. However I got an error that Expo does not support custom native modules. Help!

Thanks in advance.

CodePudding user response:

We've implemented Google-Sign-In using the expo-google-sign-in library. Implementation is easy enough, but you will have to test using a standalone build of your application which is the only slightly annoying piece of the puzzle.

Building a standalone build is now even easier with EAS (not sure if you have an account - but if you don't, I would highly recommend it.)

  • Related