#488 fix 401 infinite loading loop (#493)

This commit is contained in:
lenhanphung
2026-02-02 21:38:26 +07:00
committed by GitHub
parent 6014681f29
commit 7d8d6c7a45
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export const api = ky.extend({
if (response.status === 401) {
// Check if we're already on login flow to prevent redirect loop
const currentPath = window.location.pathname;
if (currentPath === "/" || currentPath === "/callback") {
if (currentPath === "/callback") {
return response;
}