Keys / Auth0

AUTH0_CLIENT_SECRET

The client secret of an Auth0 application, which your server sends to Auth0 to sign people in.

Expires
the docs don't say
API
rotate or set, with the Management API

Get it

Create one on manage.auth0.com. The steps aren't recorded yet.

Set it

AUTH0_CLIENT_SECRET=...

The Auth0 Next.js SDK reads it from this variable when you don't pass clientSecret. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. In the application's settings, click Rotate under Danger Zone, or call the Management API's Rotate a client secret endpoint.
  2. Deploy the new secret everywhere that reads AUTH0_CLIENT_SECRET right away. The old one stops working within about 30 seconds, so sign-ins fail until the new one is live.
  3. To avoid that gap, Auth0 suggests choosing the new secret yourself: deploy it as a fallback your app tries, then set it with the Update a client endpoint.

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