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

# Google OAuth

> Configure Google OAuth for Multi-Tenant Authentication.

## Create a new Google OAuth client

<Steps>
  <Step title="Create a Google Cloud account and project">
    Navigate to the [Google Cloud Console](https://console.cloud.google.com/) and create a Google Cloud account and a new project if you have not already done so. For more information, see [Create a Google Cloud account and project](https://support.google.com/googleapi/answer/6251787#zippy=%2Ccreate-a-project).
  </Step>

  <Step title="Configure your OAuth consent screen">
    Navigate to the [OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent) and configure your OAuth consent screen.
  </Step>

  <Step title="Create OAuth Client ID">
    [Go to the Google Credentials page](https://console.cloud.google.com/apis/credentials) for your application. Click on **CREATE CREDENTIALS** and then select **OAuth Client ID**.

    <img src="https://mintcdn.com/stytch-34ca0595/ImrCo7c3M8ByeeMn/images/multi-tenant-auth/authentication/oauth/google-create-credentials.png?fit=max&auto=format&n=ImrCo7c3M8ByeeMn&q=85&s=be38f86e9b4a1cfbdde0f7c055b19384" alt="Create Credentials" width="930" height="578" data-path="images/multi-tenant-auth/authentication/oauth/google-create-credentials.png" />
  </Step>

  <Step title="Select application type">
    Select **Web Application** as the application type (regardless of if it is a mobile or non-web application) and enter a name for your OAuth client.
  </Step>

  <Step title="Configure the Authorized redirect URI">
    Copy the Stytch redirect URI from the [Dashboard](https://stytch.com/dashboard/oauth) and paste it into the **Authorized redirect URIs** section.

    <img src="https://mintcdn.com/stytch-34ca0595/ImrCo7c3M8ByeeMn/images/multi-tenant-auth/authentication/oauth/google-authorized-redirect-uris.png?fit=max&auto=format&n=ImrCo7c3M8ByeeMn&q=85&s=0f70a0b5ed4d720f11971c59bfa8671f" alt="Authorized redirect URI" width="3114" height="1612" data-path="images/multi-tenant-auth/authentication/oauth/google-authorized-redirect-uris.png" />
  </Step>

  <Step title="Save the configuration">
    Click **create** to save the configuration.
  </Step>

  <Step title="(Optional) Enable Google One Tap">
    If you want the Stytch SDK to support Google One Tap, add your application's URI as an **Authorized JavaScript Origin**.

    <img src="https://mintcdn.com/stytch-34ca0595/ImrCo7c3M8ByeeMn/images/multi-tenant-auth/authentication/oauth/google-authorized-javascript-origins.png?fit=max&auto=format&n=ImrCo7c3M8ByeeMn&q=85&s=5ce5caa264eef746dd814df3c230af12" alt="Authorized JavaScript Origin" width="3114" height="1612" data-path="images/multi-tenant-auth/authentication/oauth/google-authorized-javascript-origins.png" />
  </Step>
</Steps>

## Configure your Google OAuth client in Stytch

<Steps>
  <Step title="Navigate to Google Credentials page">
    Go to the [Google Credentials page](https://console.cloud.google.com/apis/credentials) for your application. You should see your OAuth client under the **OAuth 2.0 Client IDs** section.

    <img src="https://mintcdn.com/stytch-34ca0595/ImrCo7c3M8ByeeMn/images/multi-tenant-auth/authentication/oauth/google-create-credentials.png?fit=max&auto=format&n=ImrCo7c3M8ByeeMn&q=85&s=be38f86e9b4a1cfbdde0f7c055b19384" alt="Create Credentials" width="930" height="578" data-path="images/multi-tenant-auth/authentication/oauth/google-create-credentials.png" />
  </Step>

  <Step title="Select your OAuth client">
    Click on the OAuth client to edit its configuration.
  </Step>

  <Step title="Add the Stytch redirect URI">
    Copy the Stytch redirect URI from the [Dashboard](https://stytch.com/dashboard/oauth) and paste it into the **Authorized redirect URIs** section.

    <img src="https://mintcdn.com/stytch-34ca0595/ImrCo7c3M8ByeeMn/images/multi-tenant-auth/authentication/oauth/google-authorized-redirect-uris.png?fit=max&auto=format&n=ImrCo7c3M8ByeeMn&q=85&s=0f70a0b5ed4d720f11971c59bfa8671f" alt="Authorized redirect URIs" width="3114" height="1612" data-path="images/multi-tenant-auth/authentication/oauth/google-authorized-redirect-uris.png" />
  </Step>

  <Step title="Save the configuration">
    Click to save the configuration.
  </Step>

  <Step title="(Optional) Enable Google One Tap">
    If you want the Stytch SDK to support Google One Tap, add your application's URI as an **Authorized JavaScript Origin**.

    <img src="https://mintcdn.com/stytch-34ca0595/ImrCo7c3M8ByeeMn/images/multi-tenant-auth/authentication/oauth/google-authorized-javascript-origins.png?fit=max&auto=format&n=ImrCo7c3M8ByeeMn&q=85&s=5ce5caa264eef746dd814df3c230af12" alt="Authorized JavaScript Origins" width="3114" height="1612" data-path="images/multi-tenant-auth/authentication/oauth/google-authorized-javascript-origins.png" />
  </Step>
</Steps>
