Better auth
Skill georgekhananaev/claude-skills-vault/.claude/skills/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.From its SKILL.md
npx -y skills add georgekhananaev/claude-skills-vault --skill better-authAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- reads credentialsReads from 1 credential source: `BETTER_AUTH_SECRET`.
- runs commandsInstructs the agent to run 2 commands, including `npm install better-auth` and 1 more.
SKILL.md
1.6 KB, 290 tokens by cl100k_base, as published. Nobody here has run it
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 | Configuring Better Auth, database adapters, sessions, plugins, security |
| Create Auth | 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.
What ships with it: 2 files
18.1 KB alongside SKILL.md
- best-practices-SKILL.md6.4 KB
- create-auth-SKILL.md11.7 KB