@openid4vc/oauth2 0.3.0-alpha-20250425121212 → 0.3.0-alpha-20250511115959

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
@@ -219,7 +219,7 @@ import z4 from "zod";
219
219
  var zAlgValueNotNone = z4.string().refine((alg) => alg !== "none", { message: `alg value may not be 'none'` });
220
220
 
221
221
  // src/common/jwt/z-jwt.ts
222
- var zCompactJwt = z5.string().regex(/^([a-zA-Z0-9_=]+)\.([a-zA-Z0-9_=]+)\.([a-zA-Z0-9_\-\+\/=]*)$/, {
222
+ var zCompactJwt = z5.string().regex(/^([a-zA-Z0-9-_]+)\.([a-zA-Z0-9-_]+)\.([a-zA-Z0-9-_]+)$/, {
223
223
  message: "Not a valid compact jwt"
224
224
  });
225
225
  var zJwtConfirmationPayload = z5.object({
@@ -339,7 +339,8 @@ function jwtSignerFromJwt({
339
339
  signer: {
340
340
  alg: header.alg,
341
341
  method: "x5c",
342
- x5c: header.x5c
342
+ x5c: header.x5c,
343
+ kid: header.kid
343
344
  }
344
345
  });
345
346
  }
@@ -415,7 +416,8 @@ ${found.map((m) => m.valid ? `SUCCEEDED: method ${m.method}` : `FAILED: method $
415
416
  if (!allowedSignerMethods || allowedSignerMethods.includes("custom")) {
416
417
  return {
417
418
  method: "custom",
418
- alg: header.alg
419
+ alg: header.alg,
420
+ kid: header.kid
419
421
  };
420
422
  }
421
423
  throw new Oauth2Error(