Skip to main content
Configure Google sign-in for your APK. This guide covers setting up Google Cloud credentials, configuring Supabase to handle Google authentication for Android, and getting sign-in working end-to-end on a real device or emulator.
APK only: When Google auth is configured through Supabase, Google sign-in for mobile apps will not work in Rocket’s preview or in published apps. It will only work in a downloaded APK installed on a real device or emulator.

Your SHA-1 Certificate Fingerprint

Rocket has generated this value for your app. You will need to paste it into Google Cloud Console in Step 1c below.
Your SHA-1 Fingerprint
AB:CD:12:34:EF:56:78:90:AB:CD:12:34:EF:56:78:90:AB:CD:12:34
Copy this value from your app and paste it in Step 1c.
Use copy-paste only. Do not type this manually. A single wrong character will prevent users from signing in.
Rocket Launch tab showing the SHA-1 fingerprint under the Android phone section with a copy button.Rocket Launch tab showing the SHA-1 fingerprint under the Android phone section with a copy button.

Step 1 — Google Cloud Console

1a. Create or select your project

1

Open Google Cloud Console

  1. Go to console.cloud.google.com and sign in.
  2. Click the project selector at the top of the page.
  3. Select your existing project, or click New Project, give it a name, and click Create.
This is the screen your users see when Google asks for permission to share their account details with your app.
1

Configure the consent screen

  1. In the sidebar, go to APIs & Services > OAuth consent screen and click Get Started.
  2. Fill in App name and User support email, then click Next.
  3. Select External and click Next.
  4. Fill in your Developer contact email and click Next.
  5. Click Create.
Leave the app in Testing mode for now. Add your own Google account as a test user so you can sign in during testing.

1c. Create the Android OAuth Client ID

This credential identifies your app to Google during sign-in.
1

Create the Android credential

  1. Go to APIs & Services > Credentials and click + Create Credentials > OAuth client ID.
  2. Set Application type to Android.
  3. Fill in the following:
FieldValue
Namee.g. MyApp Android
Package nameCopy the namespace value from android/app/build.gradle.kts in your project (e.g. com.example.zebralover)
SHA-1 certificate fingerprintCopy the SHA-1 value from your app launch APK section
  1. Click Create, then OK.
Always paste the SHA-1 value rather than typing it manually. A single incorrect character will prevent users from signing in.

1d. Create the Web OAuth Client ID

Supabase requires a separate Web Client ID to handle authentication on your behalf.
1

Create the Web credential

  1. Click + Create Credentials > OAuth client ID again.
  2. Set Application type to Web application.
  3. Name it e.g. MyApp Web (Supabase).
  4. Under Authorised redirect URIs, click + Add URI and enter:
https://<your-project-ref>.supabase.co/auth/v1/callback
Replace <your-project-ref> including < and > with your Project ID , found in Supabase under Settings > General.
  1. Click Create.
  2. A dialog shows your Client ID and Client Secret. Copy and save both values — you will need them in Step 2.
Keep your Client Secret private. Never share it publicly or include it in your app’s code.

Step 2 — Configure Supabase

2a. Enable Google Sign-In

1

Turn on the Google provider

  1. Log in to supabase.com and open your project.
  2. Go to Authentication > Providers in the sidebar.
  3. Find Google, click to expand it, and toggle Enable sign in with Google to ON.
  4. Paste the Web Client ID and Client Secret you saved in Step 1d.
  5. Click Save.

2b. Add the redirect URL

1

Add the deep-link redirect

  1. In the sidebar, go to Authentication > URL Configuration.
  2. Under Redirect URLs, click Add URL and enter:
com.yourcompany.appname://login-callback
Replace com.yourcompany.appname with your namespace value from android/app/build.gradle.kts.
  1. Click Save.

Step 3 — Update Your App Configuration

Open env.json in the root folder of your project in Rocket. Find the GOOGLE_WEB_CLIENT_ID field and replace the placeholder with the Web Client ID you copied in Step 1d.
{
    "SUPABASE_URL": "...",
    "SUPABASE_ANON_KEY": "...",
    "OPENAI_API_KEY": "...",
    "GEMINI_API_KEY": "...",
    "ANTHROPIC_API_KEY": "...",
    "PERPLEXITY_API_KEY": "...",
    "GOOGLE_WEB_CLIENT_ID": "your_google_web_client_id"
}
Paste the Web Client ID exactly as copied from the Step 1d dialog. It ends with .apps.googleusercontent.com.

You’re All Set

Go back to Rocket, click Build APK, and download your APK once the build is complete.

Google sign-in is ready

Google Cloud Console, Supabase, and your app are configured. Google sign-in will now work in your APK.