Keys / GitHub
GITHUB_CLIENT_SECRET
The OAuth app client secret your server sends to GitHub when it signs people in with GitHub.
- Expires
- the docs don't say
- API
- none; settings page only
Get it
Create one on github.com/settings/developers. The steps aren't recorded yet.
Set it
GITHUB_CLIENT_SECRET=...
GitHub's Octokit OAuth libraries take it as clientSecret; your app passes it in. Auth.js reads AUTH_GITHUB_SECRET instead. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- In the OAuth app's settings, generate a new client secret.
- Deploy it everywhere that reads
GITHUB_CLIENT_SECRET. - Check that nothing still uses the old secret, then 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.