better-auth-best-practices

Configure Better Auth for TypeScript apps with adapters and environment variables.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/SeanChenR/maestro-agent --skill better-auth-best-practices-seanchenr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-best-practices
Source: https://github.com/SeanChenR/maestro-agent/tree/main/.agents/skills/better-auth-best-practices
Command: npx skills add https://github.com/SeanChenR/maestro-agent --skill better-auth-best-practices-seanchenr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure Better Auth for TypeScript projects to manage authentication flows, server/client integration, and plugin configuration, reducing setup time and common errors.

Core Features & Use Cases

  • Setup and migrate Better Auth schemas with adapters and environment variables
  • Manage sessions, plugins, and routes for authentication across full-stack applications
  • Use cases include email/password, OAuth, and custom plugin workflows in Node/TS projects

Quick Start

Install Better Auth, configure BETTER_AUTH_SECRET and BETTER_AUTH_URL, implement an auth.ts with your adapter config, and run the migrate command.

Frequently Asked Questions about better-auth-best-practices

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

FAQPage Schema
How do I set up Better Auth in a TypeScript application?

To set up Better Auth, install the library, configure the BETTER_AUTH_SECRET and BETTER_AUTH_URL environment variables, implement an auth.ts file with your adapter configuration, and run the migration command via the Better Auth CLI.

What environment variables are required for Better Auth to manage sessions?

Better Auth requires the BETTER_AUTH_SECRET and BETTER_AUTH_URL environment variables to manage sessions, configure adapters, and route handlers for migrations, verification, and OAuth.

Can I use Better Auth for OAuth and email password authentication?

Yes, Better Auth supports email/password, OAuth, and custom plugin workflows in Node and TypeScript projects, managing authentication flows, sessions, and plugins across full-stack applications.

How do I migrate database schemas when integrating Better Auth?

You migrate database schemas for Better Auth by running the migrate command provided by the Better Auth CLI after configuring your adapters and environment variables in the auth.ts file.

Does Better Auth work with full-stack server and client codebases?

Better Auth integrates with full-stack server and client TypeScript codebases using environment variables, adapters, and route handlers to manage authentication flows, sessions, and plugin configurations.