Google Drive Setup Tutorial

Step-by-step guide to create a Google OAuth testing app for Multi Drive.

Before you start

  • You need a Google account.
  • Keep your Client ID and Client Secret ready at the end.
  • Use these callback URLs exactly: http://localhost:3000/auth/google/callback and https://multi-drives.vercel.app/auth/google/callback.

1) Create or select a Google Cloud project

  1. Open https://console.cloud.google.com
  2. Select a project from the top dropdown, or create a new one
Select project dropdown in Google Cloud Console Create a new Google Cloud project Enter project name and create project

2) Enable Google Drive API

  1. Go to APIs & Services > Library
  2. Search for Google Drive API
  3. Click Enable
Open APIs and Services from the menu Open API Library and search for Google Drive API Enable Google Drive API

3) Configure OAuth consent screen (Testing mode)

  1. Open APIs & Services > OAuth consent screen
  2. Choose External
  3. Fill app info and save
  4. Add all required Google accounts in Test users
If a Google account is not added to Test Users, sign-in can fail.
Open OAuth consent screen Fill app configuration in consent screen Add test users for your app

4) Create OAuth Client ID credentials

  1. Go to APIs & Services > Credentials
  2. Click Create Credentials > OAuth client ID
  3. Application type: Web application
  4. Authorized JavaScript origins:
    • http://localhost:3000
    • https://multi-drives.vercel.app
  5. Authorized redirect URIs:
    • http://localhost:3000/auth/google/callback
    • https://multi-drives.vercel.app/auth/google/callback
  6. Copy your Client ID and Client Secret
Open credentials page Choose OAuth client ID type Set redirect URIs and create OAuth client

5) Add credentials in Multi Drive

  1. Open home page
  2. Click Add Account and choose Google
  3. Paste Client ID and Client Secret
  4. Continue sign-in and grant permissions
Paste client ID and client secret in Multi Drive Google Drive account connected in Multi Drive

Quick troubleshooting

  • Redirect URI must match exactly (no extra slash/typo)
  • Account must be added in OAuth test users
  • Drive API must be enabled in the same project