
Better Auth
This handles authentication across any TypeScript framework with a pragmatic plugin system. You get email/password and OAuth out of the box, then add passkeys, 2FA, magic links, or multi-tenant orgs as plugins when you need them. The framework-agnostic design means the same auth code works in Next.js, SvelteKit, Express, or whatever you're using. What's nice is the CLI generates your database schema and the client hooks integrate cleanly with React, Vue, or Svelte. It's comprehensive without being opinionated about your stack, which matters if you're building something that might outlive the current JavaScript framework wars.
- skills.sh installs
- 396
- GitHub stars
- 2.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add mrgoonie/claudekit-skills --skill better-auth --agent claude-codeInstalls into .claude/skills of the current project.
Files
Better Auth Skill
Better Auth is comprehensive, framework-agnostic authentication/authorization framework for TypeScript with built-in email/password, social OAuth, and powerful plugin ecosystem for advanced features.
When to Use
- Implementing auth in TypeScript/JavaScript applications
- Adding email/password or social OAuth authentication
- Setting up 2FA, passkeys, magic links, advanced auth features
- Building multi-tenant apps with organization support
- Managing sessions and user lifecycle
- Working with any framework (Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, Express, etc.)
Quick Start
Installation
npm install better-auth
# or pnpm/yarn/bun add better-auth
Environment Setup
Create .env:
BETTER_AUTH_SECRET=<generated-secret-32-chars-min>
BETTER_AUTH_URL=http://localhost:3000
Basic Server Setup
Create auth.ts (root, lib/, utils/, or under src/app/server/):
import { betterAuth } from "better-auth";
Sponsors
Details
- Repository
- github.com/mrgoonie/claudekit-skills
- Categories
- Backend & APIs, Security, Git & Pull Requests, Databases
- First seen
- Jun 3, 2026
More from mrgoonie/claudekit-skills
All 28- Frontend Dev Guidelines377
- Web Frameworks377
- Mcp Management373
- Mermaidjs V11370
- Skill Creator360
- Payment Integration356
- Mcp Builder315
- Template Skill294
- Backend Development2.3K
- Sequential Thinking1.8K
- Threejs1.3K
- Devops995
- Chrome Devtools745
- Aesthetic722
- Ui Styling645
- Problem Solving582
- Debugging575
- Media Processing568
- Ai Multimodal539
- Code Review520
- Context Engineering502
- Shopify454
- Web Testing448
- Databases441