@orbis-systems/orbis-api-clients 0.5.3 → 0.6.1

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.
@@ -279,6 +279,7 @@ class $3621850f1f570615$export$4f22f74eddb7716a {
279
279
  this.storage = config.storage ?? sessionStorage;
280
280
  this.axiosInstance = (0, ($parcel$interopDefault($ixKlR$axios))).create({
281
281
  baseURL: config.baseUrl,
282
+ withCredentials: config.withCredentials,
282
283
  headers: {
283
284
  'Content-Type': 'application/json',
284
285
  ...config.defaultHeaders
@@ -420,6 +421,7 @@ class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$ex
420
421
  this.renewTokenCallback = renewTokenCallback;
421
422
  }
422
423
  async prepareAuthRequestConfig() {
424
+ if (this.config.withCredentials) return {};
423
425
  let { accessToken: accessToken } = this.getAuthData() || {};
424
426
  if (!accessToken) {
425
427
  (0, $ixKlR$consola.consola).warn('No access token found. Please set auth data after authorization.');