Expand description
§modo::auth::session
Unified session management for cookie and JWT transports.
v0.8 provides two independent transports that share one SQLite table
(authenticated_sessions) and one public data type (Session).
§Transports
| Transport | Module | Entry point |
|---|---|---|
| Cookie | cookie | cookie::CookieSessionService |
| JWT | jwt | jwt::JwtSessionService |
§Provides
Session— transport-agnostic session data extractor (read-only snapshot).SessionToken— opaque 32-byte random token; redacted inDebug/Display.cookie— cookie-backed session transport (cookie::CookieSession,cookie::CookieSessionService,cookie::CookieSessionLayer,cookie::CookieSessionsConfig).jwt— JWT-backed session transport (jwt::JwtSession,jwt::JwtSessionService,jwt::JwtLayer,jwt::JwtSessionsConfig).device— user-agent parsing helpers for device classification.fingerprint— browser fingerprinting for session hijacking detection.meta— request metadata (meta::SessionMeta) andmeta::header_strhelper.token—SessionTokentype (also re-exported at this level).
Re-exports§
pub use token::SessionToken;pub use cookie::CookieSession;pub use cookie::CookieSessionLayer;pub use cookie::CookieSessionService;pub use cookie::CookieSessionsConfig;pub use cookie::SessionConfig;pub use cookie::SessionLayer;pub use cookie::CookieSession as SessionExtractor;
Modules§
- cookie
- modo::auth::session::cookie
- device
- User-agent parsing helpers for device classification.
- fingerprint
- Browser fingerprinting for session hijacking detection.
- jwt
- modo::auth::session::jwt
- meta
- Request metadata derived from HTTP headers for session tracking.
- token
SessionToken— opaque 32-byte cryptographic session token.
Structs§
- Session
- One authenticated session, regardless of transport.
- Session
Data - One authenticated session, regardless of transport.