The auth/me endpoint was excluded from AuthMiddleware (as all /api/auth/ paths are), so dev-mode auto-auth never ran for it. Fixed by checking DevMode config directly in the /me handler. Also removed the aggressive window.location redirect from the API client — the React router handles 401s via the RequireAuth wrapper instead. Made-with: Cursor