Skip to content

Alibi

Better Auth for Rust. Your database, your models, your stack.

Alibi 0.1.1 is available on crates.io and targets Better Auth 1.7.7.

use alibi::plugins::{EmailPasswordPlugin, OrganizationPlugin, TwoFactorPlugin};
use alibi::{AuthBuilder, AuthResult, AuthSchema, BetterAuth};
async fn with_features<S: AuthSchema>(builder: AuthBuilder<S>) -> AuthResult<BetterAuth<S>> {
builder
.plugin(EmailPasswordPlugin::new().enable_signup(true))
.plugin(TwoFactorPlugin::new())
.plugin(OrganizationPlugin::new())
.build()
.await
}

Start with the complete setup, then add the plugins your application needs.

Your database

SQLx or SeaORM with application-owned models, generated schemas and your own migrations. Or run without a database at all.

Rust throughout

Async APIs, typed schemas and callbacks, session extractors for Axum and Poem, and trusted server-side calls without a network hop.

Everything you expect

Passwords, 36 OAuth providers, passkeys, two-factor, magic links, organizations, API keys, JWTs and more — each a plugin you register.

A familiar API

Better Auth’s HTTP contract, verified against its pinned runtime with the official client. Your existing frontend keeps working.