Favicon of Better Auth

Better Auth

Build secure, scalable authentication with a flexible framework that supports any database, 35+ OAuth providers, and AI-driven configuration.

Screenshot of Better Auth website

This authentication framework provides a comprehensive, developer-first solution for managing user identity. By prioritizing a declarative configuration approach, it allows you to set up complex authentication flows, including social logins and multi-factor authentication, with minimal boilerplate code. It is designed to be database-agnostic, giving you full control over your data by supporting direct connections to PostgreSQL, MySQL, SQLite, and MongoDB, alongside popular ORMs like Prisma and Drizzle.

Key features include:

  • Extensive Plugin Ecosystem: Access over 30 official plugins for advanced functionality like Passkeys, Magic Links, Organization management, and Enterprise SSO.
  • AI-Native Workflow: Leverage built-in MCP support to configure your authentication logic using natural language via tools like Cursor or Claude Code.
  • Robust Security Infrastructure: Protect your application with real-time threat detection, including bot blocking, brute force protection, and geo-restrictions through the integrated Sentinel system.
  • Full-Stack Observability: Benefit from automated audit logs, real-time event monitoring, and built-in transactional communication tools for email and SMS verification.

Whether you are building a small project or a large-scale enterprise application, this framework ensures you retain ownership of your auth stack while benefiting from modern, high-performance infrastructure.

Downloads
1,410,767
Stars
26,925
Last published
Mar 3, 2026
Last commit
2 minutes ago
License
MIT