1d5be35
pub mod cookie;
pub mod error;
pub mod extract;
pub mod guard;
pub mod key;
pub mod middleware;
pub mod redis;
pub mod state;
pub mod store;
pub use cookie::{clear_session_cookie, read_cookie, session_cookie};
pub use error::SessionError;
pub use extract::{REQUEST_ID_HEADER, REQUEST_ID_MAX_LEN, RequestId, validate_request_id};
pub use guard::{require_uid, session_guard};
pub use key::{MAX_SESSION_KEY_LEN, SESSION_KEY_LEN, SessionKey};
pub use middleware::SessionMiddleware;
pub use redis::RedisStore;
pub use state::{
SESSION_AUTH_SESSION_ID, SESSION_CLIENT_ID, SESSION_CLIENT_IP, SESSION_MFA_VERIFIED,
SESSION_SECURITY_VERSION, SESSION_USER_AGENT, SESSION_USER_ID, Session, SessionStatus,
};
pub use store::{SessionDiff, SessionState, SessionStore, generate_session_key};
pub mod share {
pub mod guard {
pub use crate::guard::session_guard;
}
pub mod session {
pub use crate::guard::require_uid;
}
}