@solidev/data 0.6.4 → 0.6.5

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.
@@ -1961,7 +1961,9 @@ class AuthInterceptor {
1961
1961
  }
1962
1962
  }
1963
1963
  _addToken(request, token) {
1964
- const headers = request.headers.append('Authorization', `Bearer ${token}`);
1964
+ const headers = request.headers
1965
+ .delete('Authorization')
1966
+ .append('Authorization', `Bearer ${token}`);
1965
1967
  return request.clone({ headers });
1966
1968
  }
1967
1969
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AuthInterceptor, deps: [{ token: DATA_AUTH_SERVICE }, { token: DATA_API_URL }, { token: DATA_AUTH_URLS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }