diff --git a/gui/app/src/providers/auth-provider.tsx b/gui/app/src/providers/auth-provider.tsx index 1578a78..0dbe88f 100644 --- a/gui/app/src/providers/auth-provider.tsx +++ b/gui/app/src/providers/auth-provider.tsx @@ -67,11 +67,7 @@ export const authProvider: AuthProvider = { onError: async (error) => { if (error?.status === 401) { localStorage.removeItem("access_token"); - return Promise<{ - redirectTo: "/login", - logout: true, - error: { message: "Unauthorized" }, - }>; + return {redirectTo: "/login"} } return {}; },