fix: skip 401 redirect for auth endpoints to prevent login interference
The API client's 401 handler was intercepting responses from /auth/* endpoints (login, register, me), throwing "Session expired" before the actual response could reach the caller. This prevented the login form from working — the AuthProvider's me() call returned 401, threw, and the error propagated into the login flow. Now the 401 redirect only triggers for non-auth API calls (where it genuinely indicates an expired session). Auth endpoints handle their own error responses normally. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>master
parent
d081c47c7f
commit
f8588a57a3
Loading…
Reference in New Issue