foundation_auth 0.0.4

Authentication and authorization — OAuth2/OIDC flows, JWT handling, password hashing (Argon2), TOTP, and session management with Turso/SQLite and wasm-bindgen backends
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Wasm-bindgen auth modules (gated behind `wasm-bindgen-oauth` feature).

#[cfg(feature = "wasm-bindgen-oauth")]
pub mod oauth;

/// Async session manager for wasm32 (gated behind `wasm-bindgen-session` feature).
#[cfg(feature = "wasm-bindgen-session")]
pub mod session;

/// D1-backed credential store using valtron-sync iterators (gated behind `wasm-bindgen-session` feature).
#[cfg(feature = "wasm-bindgen-session")]
pub mod d1_credential_store;

/// AsyncCredentialStore impl for D1WasmStorage (gated behind `wasm-bindgen-session` feature).
#[cfg(feature = "wasm-bindgen-session")]
pub mod async_credential_store;