@matchain/matchid-sdk-react 0.1.44-alpha.3 → 0.1.44-alpha.4

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.
@@ -1536,13 +1536,13 @@ var retryRequest = async (config) => {
1536
1536
  try {
1537
1537
  const endpoints = getEndpoints();
1538
1538
  const token = getToken();
1539
- instance.defaults.baseURL = `${endpoints.back}`;
1540
- instance.defaults.headers.common["Appid"] = getAppid();
1539
+ retryInstance.defaults.baseURL = `${endpoints.back}`;
1540
+ retryInstance.defaults.headers.common["Appid"] = getAppid();
1541
1541
  if (token) {
1542
- instance.defaults.headers.common["Authorization"] = token;
1542
+ retryInstance.defaults.headers.common["Authorization"] = token;
1543
1543
  }
1544
- instance.defaults.headers.common["Accept-Language"] = getLocale();
1545
- const { data } = await instance.request(config);
1544
+ retryInstance.defaults.headers.common["Accept-Language"] = getLocale();
1545
+ const { data } = await retryInstance.request(config);
1546
1546
  matchlog_default.log("api", data);
1547
1547
  if (data.code == 401001) {
1548
1548
  localStore.getState().logout();