better-auth-integrations

Integrate Better Auth with TypeScript web frameworks and manage cookie flow.

68|19|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill better-auth-integrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-integrations
Source: https://github.com/bobmatnyc/claude-mpm-skills/tree/main/toolchains/platforms/auth/better-auth/better-auth-integrations
Command: npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill better-auth-integrations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the integration of the Better Auth framework into various popular web frameworks, ensuring seamless authentication and authorization flows.

Core Features & Use Cases

  • Framework Adapters: Provides specific handlers for Next.js (App and Pages Router), SvelteKit, Remix, Express, Hono, and Cloudflare Workers.
  • Cookie Handling: Ensures correct cookie propagation in server-side rendering (SSR) and server actions.
  • Use Case: When building a new Next.js application that requires user authentication, use this Skill to quickly set up the auth routes and ensure secure cookie management across different rendering contexts.

Quick Start

Use the better-auth-integrations skill to set up the auth handler for your Next.js application.

Frequently Asked Questions about better-auth-integrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Better Auth with Next.js for server-side rendering?

To integrate Better Auth with Next.js, you use framework-specific adapters to manage the cookie flow securely across server-side rendering and server actions. This ensures your authentication context propagates correctly during SSR.

Does Better Auth work with SvelteKit and Express?

Yes, Better Auth works with SvelteKit and Express by utilizing specific handlers and plugins for each framework. This allows you to maintain secure authentication and authorization across different TypeScript web environments.

Why are my Better Auth cookies not propagating during Next.js server actions?

Cookies fail to propagate during server actions when framework-specific adapters are missing. Proper Better Auth integration requires these adapters to manage the cookie flow and ensure secure authentication across rendering contexts.

What is the best way to set up TypeScript authentication across multiple frameworks?

The best way to set up TypeScript authentication across multiple frameworks is using an integration layer with specific handlers for each environment. This manages secure cookie propagation across Next.js, SvelteKit, Remix, Express, Hono, and Cloudflare Workers.

Can I use Better Auth with Cloudflare Workers and Hono?

Yes, you can use Better Auth with Cloudflare Workers and Hono. The integration provides specific handlers for these environments, ensuring seamless authorization flows within your TypeScript serverless applications.