This commit is contained in:
2026-02-27 23:40:53 +01:00
parent ec8e1bd776
commit 1b1402aca1

View File

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