Configure Google Cloud Console and Supabase so Google sign-in works in your Android APK. This guide covers creating OAuth credentials, configuring Supabase, and updating your app configuration.
Your SHA-1 Certificate Fingerprint
Rocket generates a unique SHA-1 fingerprint for your app. You will need it in Step 1c below. To find it:

Step 1 - Google Cloud Console
1a. Create or select your project
Open Google Cloud Console
Go to console.cloud.google.com and sign in.
1b. Set up the OAuth Consent Screen
This is the screen your users see when Google asks for permission to share their account details with your app.Open OAuth consent screen
In the sidebar, go to APIs & Services > OAuth consent screen and click Get Started.
1c. Create the Android OAuth Client ID
This credential identifies your app to Google during sign-in.Create a new OAuth client ID
Go to APIs & Services > Credentials and click + Create Credentials > OAuth client ID.
Fill in the credential details
Fill in the following:
| Field | Value |
|---|---|
| Name | e.g. MyApp Android |
| Package name | Copy the namespace value from android/app/build.gradle.kts in your project (e.g. com.example.zebralover) |
| SHA-1 certificate fingerprint | Paste the value you copied from Rocket’s Launch tab (see above) |
1d. Create the Web OAuth Client ID
Supabase requires a separate Web Client ID to handle authentication on your behalf.Set application type to Web
Set Application type to Web application. Name it e.g.
MyApp Web (Supabase).Add the redirect URI
Under Authorised redirect URIs, click + Add URI and enter:Replace
<your-project-ref> including < and > with your Project ID, found in Supabase under Settings > General.Step 2 - Configure Supabase
2a. Enable Google Sign-In
Open your Supabase project
Log in to supabase.com and open your project.
2b. Add the redirect URL
Add the redirect URL
Under Redirect URLs, click Add URL and enter:Replace
com.yourcompany.appname with your namespace value from android/app/build.gradle.kts.Step 3 - Update Your App Configuration
In Rocket, open Code and findenv.json in the root folder of your project. Find the GOOGLE_WEB_CLIENT_ID field and replace the placeholder with the Web Client ID you copied in Step 1d.
You Are 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.
What’s next?
Social auth
Add more OAuth providers like GitHub, Apple, or Discord.
Supabase overview
See all Supabase features available in Rocket.

