@delopay/sdk 0.58.0 → 0.59.0

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
@@ -3236,7 +3236,8 @@ var Delopay = class {
3236
3236
  const type = err.error_type ?? err.type ?? "";
3237
3237
  const data = err.data && typeof err.data === "object" && !Array.isArray(err.data) ? err.data : void 0;
3238
3238
  const truncatedRaw = truncateRawBody(rawBody);
3239
- if (response.status === 401) {
3239
+ const isConnectorPassthrough = type === "connector" || code.startsWith("CE_");
3240
+ if (response.status === 401 && !isConnectorPassthrough) {
3240
3241
  throw new DelopayAuthenticationError(message, {
3241
3242
  code,
3242
3243
  type,