better-auth-best-practices

Configure Better Auth server and client authentication in TypeScript projects.

1|1|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/luizvergennes/template --skill better-auth-best-practices-luizvergennes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-best-practices
Source: https://github.com/luizvergennes/template/tree/main/.claude/skills/better-auth-best-practices
Command: npx skills add https://github.com/luizvergennes/template --skill better-auth-best-practices-luizvergennes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure Better Auth server and client across full-stack TypeScript applications to centralize authentication, sessions, and plugin management, reducing boilerplate and misconfigurations.

Core Features & Use Cases

  • Centralized authentication configuration for server and client
  • Supports adapters, plugins, and environment-driven setup
  • Use case: initialize a new app with email/password and OAuth, plus plugin configuration and migrations

Quick Start

Create an auth.ts file with database and config, then run the Better Auth CLI to migrate your schema.

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 with email/password and OAuth in a TypeScript app?

Better Auth centralizes authentication, sessions, and plugin management for full-stack TypeScript applications. It reduces boilerplate and prevents misconfigurations by providing a unified configuration approach for server and client environments.

Can I use Better Auth plugins and database adapters with my existing framework?

Yes, Better Auth supports plugin configuration and database adapters across full-stack TypeScript workflows. The setup process includes environment variable configuration, authentication file placement, and framework route handler integration for your specific stack.

What is the best way to configure authentication sessions and plugins in TypeScript?

The best way is using Better Auth's centralized configuration. You define database and settings in an auth.ts file, enabling environment-driven setup for adapters and plugins across server and client applications to centralize session management.

What steps are needed to run migrations for Better Auth schema setup?

To run migrations for Better Auth, create an auth.ts file with your database and configuration definitions first. Then execute the Better Auth CLI migration commands to generate and apply the required schema to your database.

How do I add verify endpoints and route handlers for authentication in TypeScript?

You add verify endpoints by configuring Better Auth within your framework's route structure. The setup process supports framework route handlers and verify endpoints as part of the full-stack TypeScript authentication integration workflow.