Skip to content
Back to skills

Better Auth

ASecurity

Better Auth integration guide for TypeScript/JavaScript authentication. Covers server/client configuration, database adapters, session management, plugins, OAuth, and scaffolding auth from scratch. Use when setting up authentication with Better Auth, configuring auth.ts, adding OAuth providers, or creating sign-in/sign-up flows.

  • 28 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
data-aijavascripttypescriptgojavasqlnextjsexpressgitapidatabase

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 3 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add georgekhananaev/claude-skills-vault --skill better-auth --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Better Auth?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Better Auth
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/georgekhananaev-better-auth/badge)](https://www.skillsdirectory.com/skills/georgekhananaev-better-auth)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: better-auth
description: Better Auth integration guide for TypeScript/JavaScript authentication. Covers server/client configuration, database adapters, session management, plugins, OAuth, and scaffolding auth from scratch. Use when setting up authentication with Better Auth, configuring auth.ts, adding OAuth providers, or creating sign-in/sign-up flows.
metadata:
  author: Better Auth
  source: https://github.com/better-auth/skills
  version: "1.0"
---

# Better Auth Skills

Complete authentication setup and integration guide using Better Auth for TypeScript/JavaScript applications.

## Available Sub-Skills

| Skill | File | Use When |
|-------|------|----------|
| Best Practices | [best-practices-SKILL.md](best-practices-SKILL.md) | Configuring Better Auth, database adapters, sessions, plugins, security |
| Create Auth | [create-auth-SKILL.md](create-auth-SKILL.md) | Scaffolding auth from scratch, adding login/signup to a project |

## Quick Reference

### Setup
1. `npm install better-auth`
2. Set `BETTER_AUTH_SECRET` and `BETTER_AUTH_URL` env vars
3. Create `auth.ts` with database + config
4. Create route handler for your framework
5. Run `npx @better-auth/cli@latest migrate`

### Supported Frameworks
Next.js (App/Pages Router), SvelteKit, Nuxt, Astro, Express, Hono, SolidStart

### Supported Databases
PostgreSQL, MySQL, SQLite, MongoDB (via Prisma, Drizzle, or direct drivers)

### Key Plugins
twoFactor, organization, passkey, magicLink, emailOtp, username, admin, apiKey, bearer, jwt, sso

## Source

From [better-auth/skills](https://github.com/better-auth/skills).

Files in this skill

  • SKILL.md1.6 KB
  • best-practices-SKILL.md6.4 KB
  • create-auth-SKILL.md11.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.