> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipmobilefast.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google OAuth Android

> Implement OAuth authentication for Android

# Sign in with Google on Expo React Native Android

First make sure you have completed the [Google OAuth Web](/auth/oauth/google/web) page.

* We need Supabase to be setup.

<Steps>
  <Step>
    First of all, you need to create a new project in the Google Cloud Console if you don't have one already.

    * We created a new project in [RevenueCat Integration Android](/monetization/in-app-purchases/android) page.
      If you want you can follow this first.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step1.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=60db7e729b509a119fd7769905f4a191" alt="Step 1" className="w-full h-full rounded-xl" width="868" height="720" data-path="images/setup/googleoauth/android/step1.png" />
    </Frame>
  </Step>

  <Step>
    Click the `APIs & Services` menu.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step2.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=47dbd218f9a262ca009c72fbb34fffe7" alt="Step 2" className="w-full h-full rounded-xl" width="1128" height="720" data-path="images/setup/googleoauth/android/step2.png" />
    </Frame>
  </Step>

  <Step>
    Click the `Credentials` menu.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step3.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=d52d14918941465c4047353e84250d4b" alt="Step 3" className="w-full h-full rounded-xl" width="1153" height="669" data-path="images/setup/googleoauth/android/step3.png" />
    </Frame>
  </Step>

  <Step>
    Then click the `Create Credentials` button.

    * Please select `OAuth client ID`

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step4.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=e5b381e4ffdc883ae9c978dafb11df17" alt="Step 4" className="w-full h-full rounded-xl" width="529" height="294" data-path="images/setup/googleoauth/android/step4.png" />
    </Frame>
  </Step>

  <Step>
    But you need to `Configure Consent Screen` first.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step5.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=a9534e536e9c6e85dbd144360cc31cc2" alt="Step 5" className="w-full h-full rounded-xl" width="793" height="411" data-path="images/setup/googleoauth/android/step5.png" />
    </Frame>
  </Step>

  <Step>
    Oops! There is a problem here. We need to fix it.
    Go to [Expo](https://expo.dev/login) and create a new project if you don't have one already.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step6.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=8ec47ec258222eb6cf99705c629ffbfa" alt="Step 6" className="w-full h-full rounded-xl" width="1109" height="880" data-path="images/setup/googleoauth/android/step6.png" />
    </Frame>
  </Step>

  <Step>
    Open your terminal in your project folder.

    * Run `eas credentials`
    * Select `Android`
    * Select `development`
    * get your `SHA1 Fingerprint`.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step7.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=9477275e98160de4fcd6389387a9f573" alt="Step 7" className="w-full h-full rounded-xl" width="1446" height="1080" data-path="images/setup/googleoauth/android/step7.png" />
    </Frame>
  </Step>

  <Step>
    1. Then go back to Google Cloud Console and fill the form.
    2. Paste your `https://<project-ref>.supabase.co/auth/v1/callback` in the `Authorized redirect URIs` field.
    3. Click the `Save` button.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step8.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=c3d5756ba9ee6c7d352aeacc85c6594b" alt="Step 8" className="w-full h-full rounded-xl" width="744" height="1080" data-path="images/setup/googleoauth/android/step8.png" />
    </Frame>
  </Step>

  <Step>
    Copy your `Android Client ID` and go to `.env` file.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/setup/googleoauth/android/step9.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=f57b13b40b68477f04970ac61329dd1d" alt="Step 9" className="w-full h-full rounded-xl" width="534" height="471" data-path="images/setup/googleoauth/android/step9.png" />
    </Frame>
  </Step>

  <Step>
    Add your `Android Client ID` to the `.env` file.

    ```{1} theme={null}
    EXPO_PUBLIC_GOOGLE_OAUTH_ANDROID_CLIENT_ID=some-id.apps.googleusercontent.com
    ```
  </Step>
</Steps>
