@openid4vc/oauth2 0.4.6-alpha-20260201172333 → 0.4.6

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
@@ -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'`