compare
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ axiosInstance.interceptors.response.use(
|
||||
console.error("Token refresh failed:", refreshError);
|
||||
await removeToken();
|
||||
await removeRefreshToken();
|
||||
window.location.href = `/`;
|
||||
// window.location.href = `/`;
|
||||
return Promise.reject(refreshError);
|
||||
} finally {
|
||||
window.isRefreshingToken = false;
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
export const TOKEN_NAME = "sh_token";
|
||||
export const REFRESH_TOKEN_NAME = "sh_refresh_token";
|
||||
export const BASE_URL = "https://shop-api.dev.danakcorp.com";
|
||||
// export const BASE_URL = "https://api.shinan.ir";
|
||||
// export const BASE_URL = "https://shop-api.dev.danakcorp.com";
|
||||
export const BASE_URL = "http://192.168.1.111:4000";
|
||||
|
||||
export const PRIMARY_COLOR = "#015699";
|
||||
|
||||
Reference in New Issue
Block a user