Better Auth

Better Auth adds authentication to applications through code configuration, plugins, and optional managed infrastructure.

See all
Website overview

What is Better Auth?

Better Auth is an authentication framework for TypeScript that lives inside an application. It uses a composable, plugin-based approach for projects ranging from weekend projects to consumer and enterprise applications. Self-hosted Better Auth can connect to the company's infrastructure, which provides a dashboard, audit logs, security detection, and enterprise features. The dashboard includes user management, session monitoring, organization oversight, and user analytics, while the audit logging tools include automatically captured events, filtering and search, configurable retention, and a log drain to a SIEM.

Key features

  • Provides built-in credential authentication with support for user sessions, email verification, and password resets.

  • Supports social sign-on with multiple providers including Google, GitHub, Apple, and Discord.

  • Includes built-in multi-tenancy support with teams, user roles, invitations, and access control.

  • Offers enterprise authentication capabilities such as SSO, SAML 2.0, SCIM, and directory synchronization.

  • Provides authentication for AI agents with MCP auth, token exchange, and agent delegation.

  • Supports passkey authentication through a plugin.

  • Provides filtering and search for audit logs.

  • Exports audit logs to a SIEM through a log drain.

  • Supports magic link authentication.

  • Includes bot detection.

Latest from the Better Auth blog

Visit the blog