diff --git a/.changeset/chilly-tips-compete.md b/.changeset/chilly-tips-compete.md new file mode 100644 index 0000000000..ad836697a5 --- /dev/null +++ b/.changeset/chilly-tips-compete.md @@ -0,0 +1,5 @@ +--- +'@clerk/backend': patch +--- + +Fix typo in `jwk-remote-missing` error message diff --git a/packages/backend/src/tokens/__tests__/keys.test.ts b/packages/backend/src/tokens/__tests__/keys.test.ts index 7c69a62a32..66fda5a99d 100644 --- a/packages/backend/src/tokens/__tests__/keys.test.ts +++ b/packages/backend/src/tokens/__tests__/keys.test.ts @@ -176,7 +176,7 @@ export default (QUnit: QUnit) => { action: 'Contact support@clerk.com', }); assert.propContains(err, { - message: `Unable to find a signing key in JWKS that matches the kid='${kid}' of the provided session token. Please make sure that the __session cookie or the HTTP authorization header contain a Clerk-generated session JWT. The following kid are available: ${mockRsaJwkKid}, local`, + message: `Unable to find a signing key in JWKS that matches the kid='${kid}' of the provided session token. Please make sure that the __session cookie or the HTTP authorization header contain a Clerk-generated session JWT. The following kid is available: ${mockRsaJwkKid}, local`, }); } else { // This should never be reached. If it does, the suite should fail diff --git a/packages/backend/src/tokens/keys.ts b/packages/backend/src/tokens/keys.ts index fa3bc9cbc8..dd2050de7f 100644 --- a/packages/backend/src/tokens/keys.ts +++ b/packages/backend/src/tokens/keys.ts @@ -154,7 +154,7 @@ export async function loadClerkJWKFromRemote({ throw new TokenVerificationError({ action: TokenVerificationErrorAction.ContactSupport, message: `Unable to find a signing key in JWKS that matches the kid='${kid}' of the provided session token. Please make sure that the __session cookie or the HTTP authorization header contain a Clerk-generated session JWT.${ - jwkKeys ? ` The following kid are available: ${jwkKeys}` : '' + jwkKeys ? ` The following kid is available: ${jwkKeys}` : '' }`, reason: TokenVerificationErrorReason.RemoteJWKMissing, });