What problem does it solve? Building full-stack React applications with TanStack Start involves many cross-cutting decisions—server function design, middleware composition, SSR configuration, authentication, and deployment—that are easy to get wrong, leading to security vulnerabilities, hydration mismatches, and leaked secrets. ## Core Features & Use Cases - Server Function Patterns: Rules for createServerFn usage, input validation with Zod, HTTP method selection, and error handling across the client/server boundary. - Security & Authentication: Guidelines for secure session cookies, CSRF protection, auth middleware, route protection with beforeLoad, and keeping secrets server-side only. - SSR & Deployment: Streaming SSR, hydration safety, prerendering, environment variable management, and adapter configuration for Cloudflare, Netlify, Nitro, and Bun. - Use Case: When adding a login flow to a TanStack Start app, apply the auth rules to configure httpOnly session cookies, protect routes with a pathless _authenticated layout, and verify auth in every server function via middleware. ## Quick Start Apply the TanStack Start best practices to review my server functions and authentication flow for security and correctness.