better-auth
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.
适合你,如果正在用 Better Auth 搭建用户认证流程
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
~/.claude/skills/(项目级 .claude/skills/)~/.codex/skills/npx oh-my-skill add georgekhananaev/claude-skills-vault/better-authcurl -fsSL https://oh-my-skill.com/install.sh | bash -s -- georgekhananaev/claude-skills-vault/better-authnpx oh-my-skill verify georgekhananaev/claude-skills-vault/better-auth怎么用
技能原文 SKILL.md
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
npm install better-auth- Set
BETTER_AUTH_SECRETandBETTER_AUTH_URLenv vars - Create
auth.tswith database + config - Create route handler for your framework
- 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.