@openid4vc/oauth2 0.4.5 → 0.4.6-alpha-20260219130241

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 CHANGED
@@ -1442,9 +1442,9 @@ declare const zAuthorizationChallengeRequest: z$1.ZodObject<{
1442
1442
  client_id: z$1.ZodOptional<z$1.ZodString>;
1443
1443
  auth_session: z$1.ZodOptional<z$1.ZodString>;
1444
1444
  presentation_during_issuance_session: z$1.ZodOptional<z$1.ZodString>;
1445
+ scope: z$1.ZodOptional<z$1.ZodString>;
1445
1446
  redirect_uri: z$1.ZodOptional<z$1.ZodURL>;
1446
1447
  resource: z$1.ZodOptional<z$1.ZodURL>;
1447
- scope: z$1.ZodOptional<z$1.ZodString>;
1448
1448
  state: z$1.ZodOptional<z$1.ZodString>;
1449
1449
  issuer_state: z$1.ZodOptional<z$1.ZodString>;
1450
1450
  dpop_jkt: z$1.ZodOptional<z$1.ZodBase64URL>;
package/dist/index.mjs CHANGED
@@ -262,7 +262,7 @@ function jwtSignerFromJwt({ header, payload, allowedSignerMethods }) {
262
262
  method: "federation"
263
263
  }
264
264
  });
265
- if (header.kid?.startsWith("did:") || payload.iss?.startsWith("did:")) if (payload.iss && header.kid?.startsWith("did:") && !header.kid.startsWith(payload.iss)) found.push({
265
+ if (header.kid?.startsWith("did:") || payload.iss?.startsWith("did:")) if (payload.iss && header.kid?.startsWith("did:") && !header.kid.startsWith(payload.iss) && header.typ !== "openid4vci-proof+jwt") found.push({
266
266
  method: "did",
267
267
  valid: false,
268
268
  error: `kid in header starts with did that is different from did value in 'iss'`