better-auth-best-practices

Implement Better Auth authentication in TypeScript applications with CLI workflows.

12|1|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/beeman/solana-mobile-monorepo --skill better-auth-best-practices-beeman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-best-practices
Source: https://github.com/beeman/solana-mobile-monorepo/tree/main/.ruler/skills/better-auth-best-practices
Command: npx skills add https://github.com/beeman/solana-mobile-monorepo --skill better-auth-best-practices-beeman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a practical guide for integrating Better Auth in TypeScript projects, ensuring secure, scalable authentication across server and client layers.

Core Features & Use Cases

  • Configuration best practices: how to set appName, baseURL, secret, and adapters for your environment.
  • CLI workflows: migrate, generate, and MCP usage to evolve your auth schema with confidence.
  • Security & sessions: guidance on session handling, cookies, and plugin composition to meet common security requirements.

Quick Start

Install and configure Better Auth in your project. Then run the recommended CLI commands to migrate and generate 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 configure Better Auth for a TypeScript application?

Configure Better Auth by setting up essential properties like appName, baseURL, secret, and database adapters to establish secure authentication across server and client boundaries.

How do I generate and migrate the database schema for Better Auth?

Use the Better Auth CLI workflows to migrate and generate your database schema, allowing you to evolve your authentication tables and schema with confidence.

What is the best way to handle sessions in Better Auth?

The best way to handle sessions in Better Auth is to follow its built-in security guidance for session handling, cookies, and plugin composition to meet common authentication requirements.

Can I use Better Auth across both server and client TypeScript boundaries?

Yes, Better Auth is designed for TypeScript projects and provides practical guidance to ensure scalable authentication configuration across both server and client layers.

How do plugins affect Better Auth security and session management?

Plugins affect Better Auth security by enabling customized plugin composition, which directly influences session handling, cookie configurations, and overall authentication workflow.