This commit is contained in:
hamid zarghami
2025-09-20 11:36:18 +03:30
parent 5adf5fe461
commit 40c3729d65
5 changed files with 173 additions and 9 deletions
+1 -1
View File
@@ -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
View File
@@ -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";