better-auth-best-practices

Configure Better Auth servers and clients with email/password and OAuth providers.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/bartolomeomueller/hr --skill better-auth-best-practices-bartolomeomueller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth-best-practices
Source: https://github.com/bartolomeomueller/hr/tree/main/.agents/skills/better-auth-best-practices
Command: npx skills add https://github.com/bartolomeomueller/hr --skill better-auth-best-practices-bartolomeomueller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configures Better Auth servers and clients to simplify secure authentication setup.

Core Features & Use Cases

  • Quick installation of Better Auth and boilerplate for auth.ts with adapters, sessions, and plugins.
  • Clear migration and verification steps compatible with common frameworks.
  • Real-world scenarios include email/password authentication, OAuth providers, and plugin-driven security enhancements.

Quick Start

Install Better Auth, configure auth.ts and routes, run migrations, and verify the /api/auth/ok endpoint.

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 email/password and OAuth providers?

Configuring Better Auth involves setting up an auth.ts file with adapters, session management, and plugins. This setup provides the boilerplate to handle email/password and OAuth providers, ensuring secure authentication across popular frameworks.

What's the best way to run Better Auth migrations after setup?

Running Better Auth migrations requires executing specific commands after your auth.ts configuration is complete. This updates the database schema to support sessions, OAuth, and plugin-driven security enhancements.

Does Better Auth work with popular frameworks using a framework-agnostic route?

Yes, Better Auth supports popular frameworks through framework-agnostic route integration. It allows you to configure auth.ts and routes to handle authentication endpoints consistently across different environments.

How do I handle environment variables for Better Auth OAuth configuration?

Handling environment variables for Better Auth requires defining OAuth provider credentials in a .env file. This enforces secure env var handling to manage sensitive authentication data safely.

How do I verify that my Better Auth server is running correctly?

You can verify your Better Auth server is running correctly by checking the /api/auth/ok endpoint after completing installation, configuration, and migration steps. A successful response confirms operational status.