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

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
@@ -1287,13 +1287,12 @@ var Siopv2Machine = class {
1287
1287
  };
1288
1288
 
1289
1289
  // src/services/Siopv2MachineService.ts
1290
- import { SupportedVersion as SupportedVersion2 } from "@sphereon/did-auth-siop";
1290
+ import { getOrCreatePrimaryIdentifier, SupportedDidMethodEnum } from "@sphereon/ssi-sdk-ext.did-utils";
1291
1291
  import { isOID4VCIssuerIdentifier } from "@sphereon/ssi-sdk-ext.identifier-resolution";
1292
+ import { encodeJoseBlob } from "@sphereon/ssi-sdk.core";
1292
1293
  import { verifiableCredentialForRoleFilter } from "@sphereon/ssi-sdk.credential-store";
1293
1294
  import { ConnectionType } from "@sphereon/ssi-sdk.data-store";
1294
- import { CredentialRole } from "@sphereon/ssi-types";
1295
- import { CredentialMapper as CredentialMapper3, Loggers as Loggers3 } from "@sphereon/ssi-types";
1296
- import { encodeJoseBlob } from "@sphereon/ssi-sdk.core";
1295
+ import { CredentialMapper as CredentialMapper3, CredentialRole, Loggers as Loggers3 } from "@sphereon/ssi-types";
1297
1296
  import { DcqlPresentation, DcqlQuery } from "dcql";
1298
1297
 
1299
1298
  // src/utils/dcql.ts
@@ -1334,7 +1333,6 @@ function convertToDcqlCredentials(credential, hasher) {
1334
1333
  __name(convertToDcqlCredentials, "convertToDcqlCredentials");
1335
1334
 
1336
1335
  // src/services/Siopv2MachineService.ts
1337
- import { getOrCreatePrimaryIdentifier, SupportedDidMethodEnum } from "@sphereon/ssi-sdk-ext.did-utils";
1338
1336
  var logger3 = Loggers3.DEFAULT.get(LOGGER_NAMESPACE);
1339
1337
  var siopSendAuthorizationResponse = /* @__PURE__ */ __name(async (connectionType, args, context) => {
1340
1338
  const { agent } = context;
@@ -1349,7 +1347,7 @@ var siopSendAuthorizationResponse = /* @__PURE__ */ __name(async (connectionType
1349
1347
  const aud = request.authorizationRequest.getMergedProperty("aud");
1350
1348
  logger3.debug(`AUD: ${aud}`);
1351
1349
  logger3.debug(JSON.stringify(request.authorizationRequest));
1352
- const domain = await request.authorizationRequest.getMergedProperty("client_id") ?? request.issuer ?? (request.versions.includes(SupportedVersion2.JWT_VC_PRESENTATION_PROFILE_v1) ? "https://self-issued.me/v2/openid-vc" : "https://self-issued.me/v2");
1350
+ const domain = await request.authorizationRequest.getMergedProperty("client_id") ?? request.issuer ?? "https://self-issued.me/v2";
1353
1351
  logger3.debug(`NONCE: ${session.nonce}, domain: ${domain}`);
1354
1352
  const firstUniqueDC = credentials[0];
1355
1353
  if (typeof firstUniqueDC !== "object" || !("digitalCredential" in firstUniqueDC)) {