Skip to main content

Create a new Google OAuth client

1

Create a Google Cloud account and project

Navigate to the Google Cloud Console 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.
2

Configure your OAuth consent screen

Navigate to the OAuth consent screen and configure your OAuth consent screen.
3

Create OAuth Client ID

Go to the Google Credentials page for your application. Click on CREATE CREDENTIALS and then select OAuth Client ID.Create Credentials
4

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.
5

Configure the Authorized redirect URI

Copy the Stytch redirect URI from the Dashboard and paste it into the Authorized redirect URIs section.Authorized redirect URI
6

Save the configuration

Click create to save the configuration.
7

(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.Authorized JavaScript Origin

Configure your Google OAuth client in Stytch

1

Navigate to Google Credentials page

Go to the Google Credentials page for your application. You should see your OAuth client under the OAuth 2.0 Client IDs section.Create Credentials
2

Select your OAuth client

Click on the OAuth client to edit its configuration.
3

Add the Stytch redirect URI

Copy the Stytch redirect URI from the Dashboard and paste it into the Authorized redirect URIs section.Authorized redirect URIs
4

Save the configuration

Click to save the configuration.
5

(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.Authorized JavaScript Origins