Google

Configure "Sign in with Google" for your mobile application.

"Sign in with Google" enables a fast account-chooser experience on mobile (especially on Android). Configure your platform credentials, prompt the native account picker, then exchange the returned token on your backend to create a session with your auth server.

Platform support

On Android, Google Sign‑In uses Google Identity Services and integrates with the system account chooser. On iOS, the recommended Expo flow uses expo-auth-session with Google for a native, web-based sign-in experience.

Sign in with Google

Why use Google authentication?

First-class native UX

Account picker and token storage integrated with the OS for speed and familiarity.

Seamless across platforms

Android native chooser; iOS polished experience via Expo.

Secure by default

Tokens are verified server-side with Better Auth before a session is issued.

Faster onboarding

Reduce friction with one-tap sign-in and fewer passwords to remember.

Scalable

Built on Google Identity Services and best-practice OAuth flows.

Requirements

Check the Better Auth documentation and @react-native-google-signin/google-signin documentation for steps to configure your server verification, client IDs and more.

High-level flow

  1. Configure Google OAuth Client IDs for Android and iOS in Google Cloud Console.
  2. Initialize the Google auth request in your app and render a "Sign in with Google" button.
  3. Prompt the account chooser; on success you receive an idToken and/or accessToken.
  4. Send the tokens to the API powered by Better Auth to verify and establish a session.
  5. Persist the session and proceed to the app.

For a more in-depth overview of Google authentication, including implementation details, platform caveats, and advanced configuration, see the following resources:

How is this guide?

Last updated on

On this page

Ship your startup everywhere. In minutes.Get TurboStarter