feat: add log statements + remove auto redirect (#671)

Former-commit-id: 3ee150e7d66d18c6369d171994932744a614a74f
This commit is contained in:
Hayden 2023-12-15 21:32:44 -06:00 committed by GitHub
parent 1cc9bf459a
commit d759fad40c
3 changed files with 3 additions and 3 deletions

View file

@ -36,9 +36,6 @@ export function useUserApi(): UserClient {
if (r.status === 401) {
console.error("unauthorized request, invalidating session");
authCtx.invalidateSession();
if (window.location.pathname !== "/") {
window.location.href = "/";
}
}
});