@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.
@@ -3161,7 +3161,8 @@ var Delopay = class {
3161
3161
  const type = err.error_type ?? err.type ?? "";
3162
3162
  const data = err.data && typeof err.data === "object" && !Array.isArray(err.data) ? err.data : void 0;
3163
3163
  const truncatedRaw = truncateRawBody(rawBody);
3164
- if (response.status === 401) {
3164
+ const isConnectorPassthrough = type === "connector" || code.startsWith("CE_");
3165
+ if (response.status === 401 && !isConnectorPassthrough) {
3165
3166
  throw new DelopayAuthenticationError(message, {
3166
3167
  code,
3167
3168
  type,
@@ -4133,4 +4134,4 @@ export {
4133
4134
  applyBrandingVariables,
4134
4135
  shadowFor
4135
4136
  };
4136
- //# sourceMappingURL=chunk-2ZY2CLJC.js.map
4137
+ //# sourceMappingURL=chunk-7KPAARZE.js.map