What problem does it solve? Building authentication in TanStack Start requires correctly wiring session cookies, middleware, OAuth flows, and endpoint hardening on the server side, and mistakes like trusting route guards or leaking user existence create real security holes. ## Core Features & Use Cases - Session Management: Issue, read, rotate, and destroy sessions using HttpOnly, Secure, SameSite cookies with the __Host- prefix, loaded through createMiddleware. - OAuth and Login Hardening: Implement the authorization-code flow with state and PKCE, defeat user enumeration in login and password-reset endpoints, and rotate sessions on privilege changes. - Endpoint Defense: Add CSRF origin checks for non-GET RPCs and sliding-window rate limiting on login, registration, and reset endpoints. - Use Case: You are adding login to a TanStack Start app and need every server function that touches private data to reject unauthenticated calls, even when invoked directly without visiting a guarded route. ## Quick Start Ask the AI to implement a login server function in TanStack Start with a secure session cookie, auth middleware, and rate limiting.