Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/smooth-baboons-shake.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions packages/backend/src/exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ export default (QUnit: QUnit) => {
'SignInToken',
'Token',
'TokenVerificationError',
'TokenVerificationErrorAction',
'TokenVerificationErrorCode',
'TokenVerificationErrorReason',
'User',
'Verification',
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/tokens/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * from './authObjects';
export { AuthStatus } from './authStatus';
export type { RequestState } from './authStatus';
export * from './errors';
export { TokenVerificationError, TokenVerificationErrorReason } from './errors';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tmilewski As the discussion about the error-related exports for v5 is still ongoing, I think we need to do the following:

  • export the requested error from release/v4
  • remove export * from './errors' from here
  • revisit this then we make a decision

export * from './factory';
export { loadInterstitialFromLocal } from './interstitial';
export { debugRequestState } from './request';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ exports[`/server public exports should not include a breaking change 1`] = `
"SignInToken",
"Token",
"TokenVerificationError",
"TokenVerificationErrorAction",
"TokenVerificationErrorCode",
"TokenVerificationErrorReason",
"User",
"Verification",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ exports[`module exports should not change unless explicitly set 1`] = `
"SignInToken",
"Token",
"TokenVerificationError",
"TokenVerificationErrorAction",
"TokenVerificationErrorCode",
"TokenVerificationErrorReason",
"User",
"Verification",
Expand Down