Keys / Spotify

SPOTIFY_CLIENT_SECRET

The client secret of your Spotify app. Your server sends it with the client ID to get access tokens for the Web API.

Expires
the docs don't say
API
none; Developer Dashboard only

Get it

Create one on developer.spotify.com/dashboard. The steps aren't recorded yet.

Set it

SPOTIFY_CLIENT_SECRET=...

Spotify's TypeScript Web API SDK doesn't read it; your app passes it to SpotifyApi.withClientCredentials. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. In the Developer Dashboard, open the app and click Rotate on its overview page.
  2. Deploy the new secret everywhere that reads SPOTIFY_CLIENT_SECRET.
  3. Spotify's docs don't say how long the old secret keeps working, so deploy the new one right away.

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