fix: prevent 401 redirect loop on login and register pages
The API client redirected to /login on any 401 response, including the GET /auth/me call made by AuthProvider on the login page itself. This caused an infinite hard-navigation reload loop. Skip the redirect when already on /login or /register — the AuthContext route guards handle unauthenticated routing for those pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>master
parent
da8603c57c
commit
d081c47c7f
Loading…
Reference in New Issue