@lucaapp/service-utils 1.14.0 → 1.14.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.
|
@@ -133,7 +133,8 @@ class ServiceIdentity {
|
|
|
133
133
|
this.axiosClient = axios_1.default.create({ proxy: false });
|
|
134
134
|
if (!debug) {
|
|
135
135
|
this.axiosClient.interceptors.response.use(response => response, error => {
|
|
136
|
-
if (error
|
|
136
|
+
if (Array.isArray(error?.config?.headers) &&
|
|
137
|
+
error.config.headers.contains(JWT_HEADER_NAME)) {
|
|
137
138
|
delete error.config.headers[JWT_HEADER_NAME];
|
|
138
139
|
}
|
|
139
140
|
return Promise.reject(error);
|