Skip to content

Commit 05f1832

Browse files
chore(clerk-js): Fix typo in error message (#6843)
1 parent 8ff6155 commit 05f1832

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.changeset/mean-bikes-stop.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/backend/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type TokenVerificationErrorReason =
2929

3030
export const TokenVerificationErrorAction = {
3131
ContactSupport: 'Contact support@clerk.com',
32-
EnsureClerkJWT: 'Make sure that this is a valid Clerk generate JWT.',
32+
EnsureClerkJWT: 'Make sure that this is a valid Clerk-generated JWT.',
3333
SetClerkJWTKey: 'Set the CLERK_JWT_KEY environment variable.',
3434
SetClerkSecretKey: 'Set the CLERK_SECRET_KEY environment variable.',
3535
EnsureClockSync: 'Make sure your system clock is in sync (e.g. turn off and on automatic time synchronization).',

packages/backend/src/tokens/__tests__/request.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ describe('tokens.authenticateRequest(options)', () => {
959959
);
960960

961961
const errMessage =
962-
'Subject claim (sub) is required and must be a string. Received undefined. Make sure that this is a valid Clerk generate JWT. (reason=token-verification-failed, token-carrier=cookie)';
962+
'Subject claim (sub) is required and must be a string. Received undefined. Make sure that this is a valid Clerk-generated JWT. (reason=token-verification-failed, token-carrier=cookie)';
963963
expect(requestState).toBeSignedOut({
964964
reason: TokenVerificationErrorReason.TokenVerificationFailed,
965965
message: errMessage,

0 commit comments

Comments
 (0)