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) {