Expert Better Auth implementation for TypeScript/JavaScript authentication. Covers sessions, OAuth providers, plugins, adapters, and security. Use when working with authentication, login, signup, sessions, OAuth, social login, or user management.
View on GitHubfusengine/agents
fuse-nextjs
plugins/nextjs-expert/skills/better-auth/SKILL.md
January 22, 2026
Select agents to install to:
npx add-skill https://github.com/fusengine/agents/blob/main/plugins/nextjs-expert/skills/better-auth/SKILL.md -a claude-code --skill better-authInstallation paths:
.claude/skills/better-auth/# Better Auth Expert ## Overview Better Auth is a comprehensive authentication library for TypeScript/JavaScript applications with built-in support for sessions, OAuth, plugins, and multiple database adapters. ## Quick Start ```bash bun add better-auth ``` ## Documentation Structure - [installation.md](installation.md) - Installation and setup - [basic-usage.md](basic-usage.md) - Basic usage patterns - [introduction.md](introduction.md) - Introduction to Better Auth - [concepts/](concepts/) - Core concepts (sessions, database, plugins) - [authentication/](authentication/) - Auth methods (email, OAuth, passkeys) - [plugins/](plugins/) - Available plugins - [adapters/](adapters/) - Database adapters - [integrations/](integrations/) - Framework integrations - [guides/](guides/) - How-to guides - [reference/](reference/) - API reference - [examples/](examples/) - Example implementations - [errors/](errors/) - Error handling ## Key Features - Session-based authentication - OAuth providers (Google, GitHub, Discord, etc.) - Email/Password authentication - Passkeys/WebAuthn - Two-factor authentication - Multiple database adapters - Plugin system ## Instructions 1. Configure auth instance with database adapter 2. Set up session management 3. Add authentication providers as needed 4. Use plugins for extended functionality 5. Integrate with your framework ## Documentation Reference Official site: https://www.better-auth.com