@openid4vc/oauth2 0.3.0-alpha-20250329201438 → 0.3.0-alpha-20250330133535

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
@@ -630,7 +630,7 @@ async function verifyClientAttestationJwt(options) {
630
630
  payload,
631
631
  compact: options.clientAttestationJwt,
632
632
  verifyJwtCallback: options.callbacks.verifyJwt,
633
- errorMessage: "client attestation jwt verification failed"
633
+ errorMessage: "client attestation jwt verification failed."
634
634
  });
635
635
  return {
636
636
  header,
@@ -2024,7 +2024,7 @@ async function verifyAccessTokenRequestClientAttestation(options, authorizationS
2024
2024
  clientAttestationPopJwt: options.clientAttestationPopJwt,
2025
2025
  now
2026
2026
  });
2027
- if (options.expectedClientId !== verifiedClientAttestation.clientAttestation.payload.sub) {
2027
+ if (options.expectedClientId && options.expectedClientId !== verifiedClientAttestation.clientAttestation.payload.sub) {
2028
2028
  throw new Oauth2ServerErrorResponseError(
2029
2029
  {
2030
2030
  error: "invalid_client" /* InvalidClient */,