better-auth

Implement authentication and authorization for TypeScript web applications.

2|1|Updated Oct 11, 2025
One-click install
npx skills add https://github.com/rafaelcalleja/claude-market-place --skill better-auth-rafaelcalleja
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/rafaelcalleja/claude-market-place/tree/main/plugins/claudekit-skills/skills/better-auth
Command: npx skills add https://github.com/rafaelcalleja/claude-market-place --skill better-auth-rafaelcalleja

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires flask, sqlalchemy, passlib, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Implementing robust and secure authentication and authorization in web applications is complex and critical for user trust. This skill provides streamlined solutions and best practices, simplifying a challenging development area.

Core Features & Use Cases

  • Email/Password Authentication: Set up secure traditional login flows with best practices for password hashing and storage.
  • OAuth Provider Integration: Integrate with popular OAuth providers (e.g., Google, GitHub) for social logins.
  • Database Integration: Connect authentication systems to various database backends for user data management.
  • Advanced Security Features: Guidance on multi-factor authentication, session management, and token security.
  • Use Case: Quickly set up a secure user authentication system for a new web application, including email/password login and Google OAuth, with proper database integration, all with AI assistance.

Quick Start

Use the better-auth skill to initialize a new email/password authentication system for my web application.

Frequently Asked Questions about better-auth

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

FAQPage Schema
How do I set up secure authentication for a TypeScript web application?

Authentication for TypeScript apps involves email/password login with password hashing, OAuth integration with providers like Google and GitHub, session management, and database storage. Better-auth delivers these across frameworks including Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, and Express with built-in security best practices.

Can I add OAuth providers like Google and GitHub to my web app?

Yes. OAuth provider integration lets you enable social logins for Google, GitHub, and Discord without building authentication from scratch. Better-auth handles the provider setup, token management, and user data synchronization to your database.

What databases does better-auth work with for user data storage?

Better-auth supports multiple database adapters for storing user credentials and session data. It integrates with SQLAlchemy-compatible backends and other popular databases, allowing you to choose the storage layer that fits your infrastructure.

How do I implement two-factor authentication and passkeys in my app?

Two-factor authentication and passkeys (WebAuthn) add security layers beyond passwords. Better-auth includes built-in support for both, reducing implementation complexity while meeting modern authentication standards for sensitive applications.

Does better-auth support role-based access control and multi-tenant organizations?

Yes. Role-based access control manages user permissions by role, and multi-tenant support isolates data across organizations. Better-auth provides both features with built-in session management, rate limiting, and CLI tooling for schema migrations across database backends.

What framework should I use with better-auth?

Better-auth is framework-agnostic with plugin-based architecture. It works with Next.js, Nuxt, SvelteKit, Remix, Astro, Hono, Express, and more, letting you choose the framework that fits your project while maintaining consistent authentication logic.