Better Auth Integrations Goals - Mount the Better Auth handler at (or a custom base path). - Use framework helpers where available. - Ensure cookies and headers flow correctly in SSR and server actions. Quick start 1. Create an instance (see ). 2. Add a catch-all route for . 3. Use a framework helper (or ) to return a Response. Next.js App Router Next.js Pages Router Cookie handling in Next.js server actions Use the plugin so server actions set cookies correctly. Guardrails - Keep the base path consistent between server and client. - Prefer framework helpers when available. - Avoid running cu…