@sphereon/oid4vci-client 0.21.1-next.2 → 0.21.1-next.3

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
@@ -770,6 +770,9 @@ var AccessTokenClient = class _AccessTokenClient {
770
770
  }
771
771
  request.grant_type = GrantTypes.PRE_AUTHORIZED_CODE;
772
772
  request[PRE_AUTH_CODE_LITERAL2] = credentialOfferRequest?.credential_offer.grants?.[PRE_AUTH_GRANT_LITERAL2]?.[PRE_AUTH_CODE_LITERAL2];
773
+ if (request.client_id && !request.client_secret && opts.additionalParams?.client_id === void 0) {
774
+ delete request.client_id;
775
+ }
773
776
  return request;
774
777
  }
775
778
  throw new Error("Credential offer request follows neither pre-authorized code nor authorization code flow requirements.");