Skip to main content

Crate futureauth

Crate futureauth 

Source

Re-exports§

pub use config::FutureAuthConfig;
pub use error::Result;
pub use error::FutureAuthError;
pub use models::OtpChannel;
pub use models::Session;
pub use models::User;

Modules§

axum
client
config
db
error
hashing
Hashing helpers for secrets stored at rest (session tokens, OTP codes, magic-link tokens).
models

Structs§

FutureAuth

Functions§

ensure_tables
Create all FutureAuth tables if they don’t exist. Only needs a database pool — no config required.
migration_sql
Returns the raw SQL needed to create all FutureAuth tables.