NewCode with Beto MCP

Tutorial Sign In with Google | React Native Expo

Beto, November 8, 2022 · 45,436 views

Google login is one of those features users just expect, and the old Expo Google Sign-In package for it is deprecated. I use Expo Auth Session instead, the maintained approach, and take a React Native app from Google Cloud setup to pulling the user's name, email, and photo. The whole flow is in the video, including the config details that silently break OAuth redirects.

What's inside

  • Setting up the OAuth consent screen and client IDs in Google Cloud Console
  • Bundle identifier and package name config in
  • The redirect URI format that makes the flow work
  • Opening the login browser with and
  • Reading the token and user profile after sign-in
  • Keeping client secrets off GitHub and prepping for production

Resources

CourseReact Native course

Let's connect!

Had a win? Get featured on Code with Beto.Share your story