@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.d.cts CHANGED
@@ -459,6 +459,7 @@ type StartResult = {
459
459
  };
460
460
  type PrepareAuthorizationResult = {
461
461
  authorizationCodeURL?: string;
462
+ oid4vciClientState: OpenID4VCIClientState;
462
463
  };
463
464
  type SelectAppLocaleBrandingArgs = {
464
465
  locale?: string;
package/dist/index.d.ts CHANGED
@@ -459,6 +459,7 @@ type StartResult = {
459
459
  };
460
460
  type PrepareAuthorizationResult = {
461
461
  authorizationCodeURL?: string;
462
+ oid4vciClientState: OpenID4VCIClientState;
462
463
  };
463
464
  type SelectAppLocaleBrandingArgs = {
464
465
  locale?: string;
package/dist/index.js CHANGED
@@ -701,7 +701,8 @@ var createOID4VCIMachine = /* @__PURE__ */ __name((opts) => {
701
701
  onDone: {
702
702
  target: OID4VCIMachineStates.initiateAuthorizationRequest,
703
703
  actions: assign({
704
- authorizationCodeURL: /* @__PURE__ */ __name((_ctx, _event) => _event.data.authorizationCodeURL, "authorizationCodeURL")
704
+ authorizationCodeURL: /* @__PURE__ */ __name((_ctx, _event) => _event.data.authorizationCodeURL, "authorizationCodeURL"),
705
+ openID4VCIClientState: /* @__PURE__ */ __name((_ctx, _event) => _event.data.oid4vciClientState, "openID4VCIClientState")
705
706
  })
706
707
  },
707
708
  onError: {
@@ -2027,7 +2028,7 @@ var getIssuanceCryptoSuite = /* @__PURE__ */ __name(async (opts) => {
2027
2028
  case "jwt":
2028
2029
  case "jwt_vc_json":
2029
2030
  case "jwt_vc":
2030
- //case 'vc+sd-jwt': // TODO see SSISDK-52 concerning vc+sd-jwt
2031
+ case "vc+sd-jwt":
2031
2032
  case "dc+sd-jwt":
2032
2033
  case "mso_mdoc": {
2033
2034
  const supportedPreferences = jwtCryptographicSuitePreferences.filter((suite) => signing_algs_supported.includes(suite));
@@ -2404,7 +2405,9 @@ var OID4VCIHolder = class _OID4VCIHolder {
2404
2405
  logger.log(`authorization code URL ${authorizationCodeURL}`);
2405
2406
  }
2406
2407
  return {
2407
- authorizationCodeURL
2408
+ authorizationCodeURL,
2409
+ // Needed, because the above createAuthorizationRequestUrl manipulates the state, adding pkce opts to the state
2410
+ oid4vciClientState: JSON.parse(await client.exportState())
2408
2411
  };
2409
2412
  }
2410
2413
  async oid4vciHolderCreateCredentialsToSelectFrom(args, context) {