ID
Authentication Modes

Authentication Modes Overview

Comparison of all 5 supported authentication modes in nuxt-gsheet.

nuxt-gsheet automatically detects and supports 5 distinct authentication modes depending on your spreadsheet privacy and credential setup.

Comparison Matrix

ModeCredentials NeededPublic / PrivateReadWriteQuota Limit
gvizNonePublic OnlyYesNoUncapped (Google Query API)
csvNonePublic OnlyYesNoUncapped (Direct CSV export)
appscriptApps Script Web App URLPublic & PrivateYesYesFree (Script Execution Quotas)
apikeyGCP API KeyPublic OnlyYesNoStandard GCP API Limits
service-accountGCP Service Account JSONPrivate & PublicYesYesStandard GCP API Limits

Automatic Detection Priority

If auth is not explicitly declared in nuxt.config.ts, nuxt-gsheet detects the active mode based on defined environment variables in this order:

  1. appscript: Detected if GSHEET_APPSCRIPT_URL is present.
  2. apikey: Detected if GSHEET_API_KEY is present.
  3. service-account: Detected if GSHEET_CLIENT_EMAIL and GSHEET_PRIVATE_KEY are present.
  4. gviz / csv: Fallback mode if only GSHEET_SPREADSHEET_ID is present.