ShipNow LogoShipNow

Google Login

Learn how to set up Google authentication with Supabase in your ShipNow application.

Create Google Cloud Project

Go to Google Cloud Console and create a new project or select an existing one

Go to OAuth consent screen and add your app name, email, and other information

If you have already configured the OAuth consent screen, you can modify it through the "Branding" link on the left

Configure OAuth consent screen

Create OAuth Client ID and Secret

Go to Credentials Page

Go to Credentials and click "CREATE CREDENTIALS" > "OAuth client ID"

Create OAuth client ID and secret

Create OAuth Client ID and Secret

In the "Create OAuth client ID" page

  • Choose "Web application"

  • Add authorized redirect URI:

    • If you are using Auth.js, add the following:

      http://localhost:3000/api/auth/callback/google

      Replace http://localhost:3000 with your app's URL

    • If you are using Supabase, add the following:

      https://[YOUR_PROJECT_ID].supabase.co/auth/v1/callback

      Replace [YOUR_PROJECT_ID] with your Supabase project ID

  • Click "CREATE"

Create OAuth client ID and secret

Save OAuth Client ID and Secret

Save the "Client ID" and "Client Secret"

Save credentials

Configure Google Login with Auth.js

If you are using Auth.js, add the "Client ID" and "Client Secret" to your .env.local file

.env.local
AUTH_GOOGLE_CLIENT_ID="your-client-id"
AUTH_GOOGLE_CLIENT_SECRET="your-client-secret"

Configure Google Login with Supabase

If you are using Supabase, go to Supabase Google Login Configuration

  • Check "Enable Sign in with Google"
  • Add the "Client ID" and "Client Secret" from the previous step
  • Click "Save"

Add credentials to Supabase

Use Google Login in ShipNow

Go to your app and click the "Sign in" button, then click "Sign in with Google"

Sign in with Google

Google Login Page Preview

You will be redirected to Google login page, after signing in you will be redirected back to your app

Google login page

ShipNow LogoGet ShipNow