Create the OAuth client — Google Drive setup — VidVertex Docs
Docs/Google Drive setup/Create the OAuth client

Create the OAuth client

  1. Open the Google Cloud Console (console.cloud.google.com) with the Google account whose Drive should host the files. Create a new project (any name, e.g. "VidVertex uploads").
  2. APIs & Services → Library: search Google Drive API and Enable it.
  3. APIs & Services → OAuth consent screen: choose External, fill in the app name and your email, save.
  4. Stay on the consent screen, open Audience and click Publish app, then confirm. Do not leave the client in Testing: Google expires the refresh token of a testing client after seven days, and from then on every upload run stops with "Google Drive is not connected". Publishing needs no Google review and no security assessment here — VidVertex asks only for the drive.file scope, which Google classes as non-sensitive because the app can see nothing on your Drive except the files it created itself. (Adding yourself under Test users is only worth it if you deliberately want to keep the client unpublished for a day or two of testing; it is not a setup you should stay in.)
  5. APIs & Services → Credentials → Create credentials → OAuth client ID: application type Desktop app. Create, then Download JSON. That file is your credentials.json — keep it somewhere permanent (your data folder is a good place).
Click to enlarge
Google Cloud console, Create OAuth client ID: application type Desktop app selected, ready to createGoogle Cloud console, Create OAuth client ID: application type Desktop app selected, ready to create
FIG 1Google Cloud console, Create OAuth client ID
NOTE

The consent screen may warn that the app is unverified, published or not. That's expected — it is your own client, used only by you. Click through "Advanced → go to …".