fix log
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user