mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-26 04:20:28 +00:00
feat: add log statements + remove auto redirect (#671)
This commit is contained in:
parent
85c8e47016
commit
3ee150e7d6
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