You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Axios rejects non-2xx responses by default, so a 401 goes to the rejection handler (which only rethrows) and logout() never runs.
Impact
When the backend revokes a session (password change, logout from another device, server-side expiry) while the stored expiry is still in the future, the app keeps treating the user as logged in: isAuthenticated stays true, protected screens stay reachable, and their API calls keep failing instead of sending the user to sign-in. With #183, the stored session also decides whether a deep link opens a protected screen directly, so the stale session reaches deep links too.
Fix
Handle the 401 in the rejection handler and rethrow:
Activity