squarefi-bff-api-module 1.31.5 → 1.31.6

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.
@@ -46,7 +46,7 @@ const createApiClient = ({ baseURL, isBearerToken, tenantId }) => {
46
46
  });
47
47
  instance.interceptors.request.use((config) => {
48
48
  const { access_token } = (0, tokensFactory_1.getTokens)();
49
- const modifiedHeaders = Object.assign(Object.assign({}, config.headers), { 'Content-Type': 'application/json', 'x-tenant-id': tenantId });
49
+ const modifiedHeaders = Object.assign(Object.assign({}, config.headers), { 'x-tenant-id': tenantId });
50
50
  if (access_token) {
51
51
  const authHeader = isBearerToken ? `Bearer ${access_token}` : access_token;
52
52
  modifiedHeaders.Authorization = authHeader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.31.5",
3
+ "version": "1.31.6",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -46,7 +46,6 @@ export const createApiClient = ({ baseURL, isBearerToken, tenantId }: CreateApiC
46
46
 
47
47
  const modifiedHeaders = {
48
48
  ...config.headers,
49
- 'Content-Type': 'application/json',
50
49
  'x-tenant-id': tenantId,
51
50
  };
52
51