@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.d.mts +26 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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-
|
|
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(
|