diff --git a/.changeset/spotty-pears-fold.md b/.changeset/spotty-pears-fold.md new file mode 100644 index 00000000000..3e878b3c3f9 --- /dev/null +++ b/.changeset/spotty-pears-fold.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': minor +--- + +Expose token verification error types to the user, to enable more granular error handling when manually verifying tokens with Clerk. diff --git a/packages/backend/src/tokens/index.ts b/packages/backend/src/tokens/index.ts index 45963f9f6c5..d2a3cbf3c7f 100644 --- a/packages/backend/src/tokens/index.ts +++ b/packages/backend/src/tokens/index.ts @@ -5,4 +5,4 @@ export * from './errors'; export * from './factory'; export { loadInterstitialFromLocal } from './interstitial'; export { debugRequestState } from './request'; -export type { AuthenticateRequestOptions, OptionalVerifyTokenOptions } from './request'; +export type { AuthenticateRequestOptions, OptionalVerifyTokenOptions, RequiredVerifyTokenOptions } from './request';