better-auth-best-practices

Configure Better Auth server and client implementations for TypeScript web applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies the complex process of integrating Better Auth into TypeScript projects by providing a structured workflow for database adapters, session management, and plugin configuration.

Core Features & Use Cases

  • Configuration Guidance: Provides clear steps for setting up environment variables, database adapters (Drizzle, Prisma), and route handlers.
  • Security Best Practices: Offers insights into session storage, cookie caching strategies, and CSRF protection settings.
  • Use Case: Use this Skill when you need to implement secure email/password or OAuth authentication in a new Next.js or Node.js application and want to ensure your database schema and session logic follow official recommendations.

Quick Start

Use the better-auth-best-practices skill to generate the necessary database schema and configuration for a new Drizzle-based authentication setup.

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 with a Drizzle database adapter in TypeScript?

Configuring Better Auth with a Drizzle database adapter involves setting up environment variables, initializing the database adapter, and defining route handlers. This skill provides structured steps to generate the necessary database schema and configuration.

What is the best way to manage session storage and cookies in Better Auth?

Managing session storage in Better Auth involves applying recommended security best practices for cookie caching strategies and CSRF protection settings. This ensures compliant and secure session management.

Does Better Auth support OAuth and email verification flows for Next.js?

Yes, Better Auth supports OAuth and email verification flows for Next.js applications. It ensures compliance with security standards for authentication flows including OAuth, email verification, and password management.

Can I use Prisma instead of Drizzle for my Better Auth database adapter?

Yes, you can use Prisma instead of Drizzle for your Better Auth database adapter. The configuration guidance covers integrating both Drizzle and Prisma adapters to manage your database schema and session logic.

How do I extend Better Auth features using plugins in a Node.js application?

Extending Better Auth features in a Node.js application involves utilizing plugin-based feature extensions. This skill manages plugin configuration to add functionality while maintaining security standards for authentication flows.