better-auth-best-practices

Configure Better Auth TypeScript authentication with environment variables and database adapters.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidance and best practices for integrating the Better Auth framework, ensuring secure and efficient user authentication in applications.

Core Features & Use Cases

  • Configuration Guidance: Understand essential environment variables, core config options, and database integration.
  • Security Best Practices: Learn about session management, user/account configurations, email flows, and advanced security settings.
  • Use Case: A developer needs to implement OAuth and email/password login for their new web application. This Skill guides them through setting up the necessary environment variables, configuring social providers, and understanding session management to ensure a secure authentication flow.

Quick Start

Consult the Better Auth documentation for detailed code examples and API references.

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 environment variables for Better Auth in TypeScript?

To configure Better Auth environment variables, you must define essential variables required by the framework for secure operation. This Skill details the specific environment variables needed to establish a robust authentication foundation.

What's the best way to implement OAuth social providers with Better Auth?

The best way to implement OAuth with Better Auth is by configuring social providers within the core authentication options. This Skill provides configuration guidance for setting up OAuth providers to ensure a secure login flow.

Does Better Auth support custom database adapters for session management?

Yes, Better Auth supports custom database adapters for session management. This Skill covers database integration details and explains how to configure user and account settings alongside session management for secure authentication.

How do I set up email flows and security hooks in Better Auth?

To set up email flows and security hooks in Better Auth, you configure advanced security settings and plugin integrations. This Skill details how to implement email verification flows and utilize hooks for robust application security.

Can I use Better Auth for both OAuth and email/password login in a new web application?

Yes, you can use Better Auth for both OAuth and email/password login in a new web application. This Skill guides developers through configuring social providers, email flows, and session management to ensure a secure authentication flow.