Back to Skills

better-auth

verified

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 GitHub

Marketplace

fusengine-plugins

fusengine/agents

Plugin

fuse-nextjs

development

Repository

fusengine/agents

plugins/nextjs-expert/skills/better-auth/SKILL.md

Last Verified

January 22, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/fusengine/agents/blob/main/plugins/nextjs-expert/skills/better-auth/SKILL.md -a claude-code --skill better-auth

Installation paths:

Claude
.claude/skills/better-auth/
Powered by add-skill CLI

Instructions

# 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

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1436 chars