forked from mirrors/homebox
feat: add log statements + remove auto redirect (#671)
Former-commit-id: 3ee150e7d66d18c6369d171994932744a614a74f
This commit is contained in:
parent
1cc9bf459a
commit
d759fad40c
3 changed files with 3 additions and 3 deletions
|
@ -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 = "/";
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue