diff --git a/.changeset/smooth-baboons-shake.md b/.changeset/smooth-baboons-shake.md new file mode 100644 index 0000000000..49a76c5472 --- /dev/null +++ b/.changeset/smooth-baboons-shake.md @@ -0,0 +1,8 @@ +--- +'@clerk/clerk-sdk-node': major +'@clerk/backend': major +'@clerk/nextjs': major +'@clerk/remix': major +--- + +Limit TokenVerificationError exports to TokenVerificationError and TokenVerificationErrorReason diff --git a/packages/backend/src/exports.test.ts b/packages/backend/src/exports.test.ts index 5201a7d2eb..7adea6c8e3 100644 --- a/packages/backend/src/exports.test.ts +++ b/packages/backend/src/exports.test.ts @@ -31,8 +31,6 @@ export default (QUnit: QUnit) => { 'SignInToken', 'Token', 'TokenVerificationError', - 'TokenVerificationErrorAction', - 'TokenVerificationErrorCode', 'TokenVerificationErrorReason', 'User', 'Verification', diff --git a/packages/backend/src/tokens/index.ts b/packages/backend/src/tokens/index.ts index 45963f9f6c..926783d53b 100644 --- a/packages/backend/src/tokens/index.ts +++ b/packages/backend/src/tokens/index.ts @@ -1,7 +1,7 @@ export * from './authObjects'; export { AuthStatus } from './authStatus'; export type { RequestState } from './authStatus'; -export * from './errors'; +export { TokenVerificationError, TokenVerificationErrorReason } from './errors'; export * from './factory'; export { loadInterstitialFromLocal } from './interstitial'; export { debugRequestState } from './request'; diff --git a/packages/nextjs/src/server/__tests__/__snapshots__/exports.test.ts.snap b/packages/nextjs/src/server/__tests__/__snapshots__/exports.test.ts.snap index 5c587ad57e..5c5d740ca1 100644 --- a/packages/nextjs/src/server/__tests__/__snapshots__/exports.test.ts.snap +++ b/packages/nextjs/src/server/__tests__/__snapshots__/exports.test.ts.snap @@ -25,8 +25,6 @@ exports[`/server public exports should not include a breaking change 1`] = ` "SignInToken", "Token", "TokenVerificationError", - "TokenVerificationErrorAction", - "TokenVerificationErrorCode", "TokenVerificationErrorReason", "User", "Verification", diff --git a/packages/sdk-node/src/__tests__/__snapshots__/exports.test.ts.snap b/packages/sdk-node/src/__tests__/__snapshots__/exports.test.ts.snap index 6aee95acee..4e57c549bb 100644 --- a/packages/sdk-node/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/packages/sdk-node/src/__tests__/__snapshots__/exports.test.ts.snap @@ -27,8 +27,6 @@ exports[`module exports should not change unless explicitly set 1`] = ` "SignInToken", "Token", "TokenVerificationError", - "TokenVerificationErrorAction", - "TokenVerificationErrorCode", "TokenVerificationErrorReason", "User", "Verification",