@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.mjs CHANGED
@@ -2,12 +2,12 @@ import {
2
2
  createAuthenticateRequest,
3
3
  createBackendApiClient,
4
4
  verifyToken
5
- } from "./chunk-EGAVASBQ.mjs";
5
+ } from "./chunk-SYH6K6S7.mjs";
6
6
  import "./chunk-YBVFDYDR.mjs";
7
7
  import {
8
8
  withLegacyReturn
9
9
  } from "./chunk-P263NW7Z.mjs";
10
- import "./chunk-7E7A3JZN.mjs";
10
+ import "./chunk-7MALS3EJ.mjs";
11
11
  import "./chunk-RZ7A7F6X.mjs";
12
12
  import "./chunk-TOROEX6P.mjs";
13
13
 
package/dist/internal.js CHANGED
@@ -320,7 +320,7 @@ module.exports = __toCommonJS(internal_exports);
320
320
  // src/constants.ts
321
321
  var API_URL = "https://api.clerk.com";
322
322
  var API_VERSION = "v1";
323
- var USER_AGENT = `${"@clerk/backend"}@${"3.11.1-snapshot.v20260707124635"}`;
323
+ var USER_AGENT = `${"@clerk/backend"}@${"3.11.1"}`;
324
324
  var MAX_CACHE_LAST_UPDATED_AT_SECONDS = 5 * 60;
325
325
  var SUPPORTED_BAPI_VERSION = "2026-05-12";
326
326
  var Attributes = {
@@ -771,10 +771,10 @@ var assertSubClaim = (sub) => {
771
771
  }
772
772
  };
773
773
  var assertAuthorizedPartiesClaim = (azp, authorizedParties) => {
774
- if (!azp || !authorizedParties || authorizedParties.length === 0) {
774
+ if (!authorizedParties || authorizedParties.length === 0) {
775
775
  return;
776
776
  }
777
- if (!authorizedParties.includes(azp)) {
777
+ if (!azp || !authorizedParties.includes(azp)) {
778
778
  throw new TokenVerificationError({
779
779
  reason: TokenVerificationErrorReason.TokenInvalidAuthorizedParties,
780
780
  message: `Invalid JWT Authorized party claim (azp) ${JSON.stringify(azp)}. Expected "${authorizedParties}".`