better-auth

Configure self-hosted authentication with plugins for social login, 2FA, and RBAC.

14|5|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/oakoss/agent-skills --skill better-auth-oakoss
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: better-auth
Source: https://github.com/oakoss/agent-skills/tree/main/skills/better-auth
Command: npx skills add https://github.com/oakoss/agent-skills --skill better-auth-oakoss

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive, self-hosted authentication solution for applications, eliminating the need for third-party services and offering deep customization for security and user management.

Core Features & Use Cases

  • Full Auth Stack: Handles sign-up, sign-in, password reset, email verification, and session management.
  • Extensible Plugins: Supports social logins (Google, GitHub, etc.), two-factor authentication (TOTP, OTP), organizations, RBAC, passkeys, and more.
  • Use Case: Securely authenticate users for your SaaS application, manage multi-tenant organizations with granular permissions, and implement robust security features like 2FA and passkeys, all within your own infrastructure.

Quick Start

Configure your application's authentication flow by following the setup instructions in the official documentation.

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 self-hosted authentication for my web application?▼

To set up self-hosted authentication, you can configure sign-up, sign-in, password reset, and email verification flows directly within your own infrastructure. This framework eliminates the need for third-party services by providing a full auth stack.

Can I implement role-based access control and multi-tenant organizations in a SaaS app?▼

Yes, you can implement role-based access control (RBAC) and manage multi-tenant organizations with granular permissions. This is achieved using the framework's extensible plugin architecture designed specifically for organizational structures.

Does this authentication framework support social logins and two-factor authentication?▼

Yes, the authentication framework supports social logins like Google and GitHub, alongside two-factor authentication methods including TOTP and OTP. These features are integrated through its extensible plugin system.

What is the best way to add passkeys and secure session management to my own servers?▼

The best way to add passkeys and secure session management on your own servers is using a self-hosted auth framework. This approach provides deep customization for user management and robust security without relying on external services.

Why choose a self-hosted auth framework over third-party authentication services?▼

You should choose a self-hosted auth framework to eliminate reliance on third-party services and gain deep customization for security. It allows you to securely manage users, handle sessions, and implement RBAC entirely within your own infrastructure.