Docs

Publishable and Secret Keys

Note

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:

  • Frontend API URL
  • API key
  • JWT key (depending on the SDK version)

New SDKs have replaced these with two keys:

  • Publishable Key (prefixed with pk_test_ or pk_live_)
  • 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, we have updated our documentation and code samples to use the new Publishable Key and Secret Key format.

Caution

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.

Feedback

What did you think of this content?

Last updated on