Keys / Google Auth Platform

GOOGLE_CLIENT_SECRET

The OAuth client secret your server sends to Google when it signs people in with Google.

Expires
the docs don't say; clients unused for 6 months are deleted
API
none documented; Cloud console only

Get it

Create one on console.cloud.google.com/auth/clients. The steps aren't recorded yet.

Set it

GOOGLE_CLIENT_SECRET=...

Google's auth libraries don't read it; your app or auth library passes it in. Auth.js reads AUTH_GOOGLE_SECRET instead. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. On the Clients page, open the client and click Add Secret. A client can have two secrets, and both work until you disable one.
  2. Copy the new secret now; the console shows it only once. Deploy it everywhere that reads GOOGLE_CLIENT_SECRET.
  3. Check that nothing still uses the old secret, then click Disable on it. If something breaks, enable it again; once all is well, delete it.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16