A modern authentication framework for Ruby, inspired by Better Auth.This project is independent and is not affiliated with, maintained by, or endorsed by the Better Auth project.View on GitHub →
Own Your Auth
The most comprehensive authentication framework for Ruby.
git:(main)x
bundle add better_auth
require "better_auth"
AUTH = BetterAuth.auth( secret: ENV.fetch("BETTER_AUTH_SECRET"), base_url: ENV.fetch("BETTER_AUTH_URL"), database: BetterAuth::Adapters::Postgres.new( url: ENV.fetch("DATABASE_URL") ), email_and_password: { enabled: true }, plugins: [ BetterAuth::Plugins.organization, BetterAuth::Plugins.two_factor ])Rack First
Run auth in any Rack app.
Mount Better Auth in Rack, Sinatra, Rails, or any Ruby server that speaks Rack.Learn more
Authentication
Email & Password Authentication.
Built-in support for email and password authentication, with session and account management features.Learn more
Social Sign-on
Support multiple OAuth providers.
Allow users to sign in with supported providers including GitHub, Google, GitLab, Discord, Apple, and Microsoft.Learn more
Two Factor
Multi Factor Authentication.
Secure your users accounts with two factor authentication with a few lines of code.Learn more
Multi Tenant
Organization Members and Invitation.
Multi tenant support with members, organization, teams and invitation with access control.Learn more
Plugin Ecosystem
A lot more features with plugins.
Add organizations, admin, passkeys, two-factor auth, API keys, SSO, SCIM, Stripe, and more through Ruby plugins.Learn more