Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.dev

Publishable and Secret Keys

If your application was created after January 18, 2023, you're already using Publishable and Secret Keys.

In early Clerk SDKs, developers were required to configure three keys:

  1. Frontend API URL
  2. API key
  3. JWT key (depending on the SDK version)

New SDKs have replaced these with two keys:

  1. Publishable key (prefixed with pk_test_ or pk_live_)
  2. Secret key (prefixed with sk_test_ or sk_live_)

The name and format of these keys are common among developer tools, and we adopted them to provide a more familiar developer experience.

Although legacy keys will remain operational and are still accessible in the Dashboard, we have updated our documentation and code samples to use the new Publishable Key and Secret Key format.

Important: Legacy keys cannot be mixed with the new publishable and secret keys. It is important that you replace all keys at once.

We recommend updating at your earliest convenience.

Was this helpful?

Clerk © 2023