Better Auth in Rust
A comprehensive, plugin-based authentication framework for Rust.
Better Auth is a type-safe, async-first authentication framework for Rust inspired by Better Auth. It provides a composable plugin system for email/password auth, sessions, password management, email verification, and more.
Features
- Plugin architecture — compose only the auth features you need
- App-owned SeaORM schema — auth entities live in your model graph
- Session management — opaque session tokens with cookie and Bearer transport
- Password security — Argon2 hashing with configurable policies
- Middleware stack — CSRF protection, CORS, rate limiting, body limits
- Database hooks — intercept create/update/delete operations
- OpenAPI generation — auto-generated API specification
- Framework integration — first-class Axum support