better-auth

Automate authentication and authorization management for TypeScript/JavaScript web applications.

15|27|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/kevinnguyen271090/claudekit-engineering --skill better-auth-kevinnguyen271090
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/kevinnguyen271090/claudekit-engineering/tree/main/better-auth
Command: npx skills add https://github.com/kevinnguyen271090/claudekit-engineering --skill better-auth-kevinnguyen271090

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solves?

This Skill simplifies the complex process of implementing robust authentication and authorization systems, addressing challenges like managing various login methods (email/password, OAuth), ensuring data integrity, and controlling user access. It helps developers build secure web applications efficiently.

Core Features & Use Cases

  • Email/Password Authentication: Guides on setting up secure email and password-based login flows, including password hashing and secure storage.
  • OAuth Provider Integration: Instructions for integrating popular OAuth providers (e.g., Google, GitHub) for seamless social logins.
  • Database Integration: Best practices for integrating authentication systems with various databases, ensuring secure user data storage and retrieval.
  • Use Case: A developer needs to add user authentication to a new web application. This Skill can guide them through initializing an authentication system with email/password login, integrating it with a PostgreSQL database, and adding Google OAuth as an alternative.

Quick Start

Initialize a new authentication system with email/password login and integrate it with a PostgreSQL database.

Frequently Asked Questions about better-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add authentication to a web application with email and password login?

Email/password authentication establishes secure user login by hashing passwords, storing credentials safely, and managing sessions. Initialize an authentication system with your framework (Next.js, Express, SvelteKit, etc.), configure your database adapter (Prisma, Drizzle, Kysely), and set up email/password flows with secure password hashing and session management.

Can I integrate OAuth providers like Google and GitHub into my web app?

OAuth provider integration enables social login by delegating authentication to third-party services. This Skill supports integrating popular OAuth providers (Google, GitHub, and others) into TypeScript/JavaScript applications across multiple frameworks, handling token exchange and user data retrieval automatically.

What databases does this authentication system support?

This Skill supports multiple databases including PostgreSQL, MySQL, SQLite, and MongoDB through adapters like Prisma, Drizzle, and Kysely. Choose your database adapter during setup; the system generates migrations and schemas tailored to your chosen database and ORM.

How do I implement role-based access control and user permissions?

Role-based access control (RBAC) restricts user actions based on assigned roles. This Skill provides built-in RBAC support and session management to control access to resources and enforce user permissions across your application after authentication succeeds.

Does this support multi-factor authentication and passkeys?

Multi-factor authentication adds security layers beyond passwords using TOTP, 2FA, and passkeys/WebAuthn. This Skill includes native support for 2FA/TOTP and passkey-based authentication, enhancing security for sensitive applications.

Can I use this authentication system across different JavaScript frameworks?

This Skill works across TypeScript/JavaScript frameworks including Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, and Express through a plugin-based, framework-agnostic architecture. Environment-driven configuration and CLI-generated schemas adapt to your chosen framework.