05d79d3d21
The 401 handler was redirecting to /login unconditionally, causing an infinite reload loop when useTheme fired unauthenticated API calls on the login page itself. Now only redirects if not already on /login. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>