Skip to content

Commit

Permalink
fix(frontend): small fix to reset frontend login if cookie refresh fails
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Dec 15, 2024
1 parent bc2399d commit 259c256
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 259c256

Please sign in to comment.