Skip to content

Commit

Permalink
chore(backend): Limit exposed token verification related errors (#2189)
Browse files Browse the repository at this point in the history
Co-authored-by: flawnn <[email protected]>
  • Loading branch information
tmilewski and flawnn authored Dec 7, 2023
1 parent 03262f0 commit e1f7eae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
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 @@ -31,8 +31,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';
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 @@ -25,8 +25,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 @@ -27,8 +27,6 @@ exports[`module exports should not change unless explicitly set 1`] = `
"SignInToken",
"Token",
"TokenVerificationError",
"TokenVerificationErrorAction",
"TokenVerificationErrorCode",
"TokenVerificationErrorReason",
"User",
"Verification",
Expand Down

0 comments on commit e1f7eae

Please sign in to comment.