@sphereon/ssi-sdk.ebsi-support 0.34.1-next.299 → 0.34.1-next.322

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
@@ -2334,10 +2334,14 @@ var ebsiCreateAttestationAuthRequestURL = /* @__PURE__ */ __name(async ({ client
2334
2334
  throw Error(`Could not find '${credentialType}' with format(s) '${formats.join(",")}' in list of supported types for issuer: ${credentialIssuer}`);
2335
2335
  }
2336
2336
  const authorizationDetails = supportedConfigurations.map((supported) => {
2337
+ const credential_configuration_id = supported.id;
2338
+ if (!credential_configuration_id) {
2339
+ throw Error(`Credential configuration id missing for credential type: ${credentialType}`);
2340
+ }
2337
2341
  return {
2338
2342
  type: "openid_credential",
2339
- format: supported.format,
2340
- types: getTypesFromCredentialSupported(supported)
2343
+ credential_configuration_id,
2344
+ credential_identifiers: getTypesFromCredentialSupported(supported)
2341
2345
  };
2342
2346
  });
2343
2347
  const signCallbacks = requestObjectOpts.signCallbacks ?? {