@sphereon/ssi-sdk.siopv2-oid4vp-op-auth 0.34.1-feature.SSISDK.58.host.nonce.endpoint.145 → 0.34.1-feature.SSISDK.58.host.nonce.endpoint.194

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
@@ -394,10 +394,8 @@ __name(createOID4VPPresentationSignCallback, "createOID4VPPresentationSignCallba
394
394
  async function createOPBuilder({ opOptions, idOpts: idOpts1, context }) {
395
395
  const eventEmitter = opOptions.eventEmitter ?? new EventEmitter();
396
396
  const builder = OP.builder().withResponseMode(opOptions.responseMode ?? ResponseMode.DIRECT_POST).withSupportedVersions(opOptions.supportedVersions ?? [
397
- SupportedVersion.SIOPv2_ID1,
398
- SupportedVersion.JWT_VC_PRESENTATION_PROFILE_v1,
399
- SupportedVersion.SIOPv2_D11,
400
- SupportedVersion.SIOPv2_D12_OID4VP_D18
397
+ SupportedVersion.OID4VP_v1,
398
+ SupportedVersion.SIOPv2_OID4VP_D28
401
399
  ]).withExpiresIn(opOptions.expiresIn ?? 300).withEventEmitter(eventEmitter).withRegistration({
402
400
  passBy: PassBy.VALUE
403
401
  });
@@ -1671,7 +1669,7 @@ var DidAuthSiopOpAuthenticator = class {
1671
1669
  const verifiedAuthorizationRequest = await session.getAuthorizationRequest();
1672
1670
  const clientName = verifiedAuthorizationRequest.registrationMetadataPayload?.client_name;
1673
1671
  const url = verifiedAuthorizationRequest.responseURI ?? (args.url.includes("request_uri") ? decodeURIComponent(args.url.split("?request_uri=")[1].trim()) : verifiedAuthorizationRequest.issuer ?? verifiedAuthorizationRequest.registrationMetadataPayload?.client_id);
1674
- const uri = url.includes("://") ? new URL(url) : void 0;
1672
+ const uri = url?.includes("://") ? new URL(url) : void 0;
1675
1673
  const correlationId = uri?.hostname ?? await this.determineCorrelationId(uri, verifiedAuthorizationRequest, clientName, context);
1676
1674
  const clientId = verifiedAuthorizationRequest.authorizationRequest.getMergedProperty("client_id");
1677
1675
  return {