This commit is contained in:
2026-02-27 23:34:21 +01:00
parent 2cdd4977ea
commit ec8e1bd776

View File

@@ -1,5 +1,5 @@
import fetchRefreshToken from "./fetchRefreshToken";
import { JWT_TOKEN } from "../constants";
import { JWT_TOKEN, BASE_URL } from "../constants";
const SESSION_INVALIDATED = "SESSION_INVALIDATED";
@@ -24,7 +24,7 @@ export const fetchWithAuth = async (
if (responseText === SESSION_INVALIDATED) {
localStorage.clear();
window.location.href = "/login";
window.location.href = BASE_URL + "/login";
return firstRes;
}