From 259c2564880fbfd3a218a05e10911d2ebfe5834f Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Sun, 15 Dec 2024 23:33:51 +0000 Subject: [PATCH] fix(frontend): small fix to reset frontend login if cookie refresh fails --- src/frontend/src/App.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index c5d83aa56..8138f0a96 100755 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -31,6 +31,9 @@ const RefreshUserCookies = () => { } else { console.error('Failed to fetch user details after cookie refresh.'); } + } else { + // Reset frontend login state on 401 + dispatch(LoginActions.setAuthDetails(null)); } } } catch (err) {