@sphereon/ssi-sdk.oid4vci-holder 0.34.1-next.322 → 0.34.1-next.324

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.cjs CHANGED
@@ -781,7 +781,8 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
781
781
  onDone: {
782
782
  target: OID4VCIMachineStates.initiateAuthorizationRequest,
783
783
  actions: (0, import_xstate.assign)({
784
- authorizationCodeURL: /* @__PURE__ */ __name((_ctx, _event) => _event.data.authorizationCodeURL, "authorizationCodeURL")
784
+ authorizationCodeURL: /* @__PURE__ */ __name((_ctx, _event) => _event.data.authorizationCodeURL, "authorizationCodeURL"),
785
+ openID4VCIClientState: /* @__PURE__ */ __name((_ctx, _event) => _event.data.oid4vciClientState, "openID4VCIClientState")
785
786
  })
786
787
  },
787
788
  onError: {
@@ -2107,7 +2108,7 @@ var getIssuanceCryptoSuite = /* @__PURE__ */ __name(async (opts) => {
2107
2108
  case "jwt":
2108
2109
  case "jwt_vc_json":
2109
2110
  case "jwt_vc":
2110
- //case 'vc+sd-jwt': // TODO see SSISDK-52 concerning vc+sd-jwt
2111
+ case "vc+sd-jwt":
2111
2112
  case "dc+sd-jwt":
2112
2113
  case "mso_mdoc": {
2113
2114
  const supportedPreferences = jwtCryptographicSuitePreferences.filter((suite) => signing_algs_supported.includes(suite));
@@ -2484,7 +2485,9 @@ var OID4VCIHolder = class _OID4VCIHolder {
2484
2485
  logger.log(`authorization code URL ${authorizationCodeURL}`);
2485
2486
  }
2486
2487
  return {
2487
- authorizationCodeURL
2488
+ authorizationCodeURL,
2489
+ // Needed, because the above createAuthorizationRequestUrl manipulates the state, adding pkce opts to the state
2490
+ oid4vciClientState: JSON.parse(await client.exportState())
2488
2491
  };
2489
2492
  }
2490
2493
  async oid4vciHolderCreateCredentialsToSelectFrom(args, context) {