From 950090c762ec0334ae4a88a3e72f5c6c4161bedc Mon Sep 17 00:00:00 2001 From: Gentile G Date: Thu, 20 Feb 2025 22:15:28 +0100 Subject: [PATCH] Authentication finaly redirect to auth page --- gui/app/src/providers/auth-provider.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 {}; },