@clerk/backend 3.11.1-snapshot.v20260707124635 → 3.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1376,10 +1376,10 @@ var assertSubClaim = (sub) => {
1376
1376
  }
1377
1377
  };
1378
1378
  var assertAuthorizedPartiesClaim = (azp, authorizedParties) => {
1379
- if (!azp || !authorizedParties || authorizedParties.length === 0) {
1379
+ if (!authorizedParties || authorizedParties.length === 0) {
1380
1380
  return;
1381
1381
  }
1382
- if (!authorizedParties.includes(azp)) {
1382
+ if (!azp || !authorizedParties.includes(azp)) {
1383
1383
  throw new TokenVerificationError({
1384
1384
  reason: TokenVerificationErrorReason.TokenInvalidAuthorizedParties,
1385
1385
  message: `Invalid JWT Authorized party claim (azp) ${JSON.stringify(azp)}. Expected "${authorizedParties}".`
@@ -1697,7 +1697,7 @@ var M2MToken = class _M2MToken {
1697
1697
  // src/constants.ts
1698
1698
  var API_URL = "https://api.clerk.com";
1699
1699
  var API_VERSION = "v1";
1700
- var USER_AGENT = `${"@clerk/backend"}@${"3.11.1-snapshot.v20260707124635"}`;
1700
+ var USER_AGENT = `${"@clerk/backend"}@${"3.11.1"}`;
1701
1701
  var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
1702
1702
  var SUPPORTED_BAPI_VERSION = "2026-05-12";
1703
1703
  var Attributes = {