@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.js CHANGED
@@ -706,7 +706,7 @@ async function verifyClientAttestationJwt(options) {
706
706
  payload,
707
707
  compact: options.clientAttestationJwt,
708
708
  verifyJwtCallback: options.callbacks.verifyJwt,
709
- errorMessage: "client attestation jwt verification failed"
709
+ errorMessage: "client attestation jwt verification failed."
710
710
  });
711
711
  return {
712
712
  header,
@@ -2094,7 +2094,7 @@ async function verifyAccessTokenRequestClientAttestation(options, authorizationS
2094
2094
  clientAttestationPopJwt: options.clientAttestationPopJwt,
2095
2095
  now
2096
2096
  });
2097
- if (options.expectedClientId !== verifiedClientAttestation.clientAttestation.payload.sub) {
2097
+ if (options.expectedClientId && options.expectedClientId !== verifiedClientAttestation.clientAttestation.payload.sub) {
2098
2098
  throw new Oauth2ServerErrorResponseError(
2099
2099
  {
2100
2100
  error: "invalid_client" /* InvalidClient */,