Skip to main content

Module session

Module session 

Source
Expand description

Session types and database operations.

Structs§

AtrgSession
A resolved authentication session, shared across all auth paths.

Enums§

AuthSource
The source of authentication credentials.

Functions§

cleanup_expired_oauth_states
Delete expired OAuth states (cleanup).
cleanup_expired_sessions
Delete all expired sessions (cleanup).
create_session
Insert a new session into the database.
delete_session
Delete a session by ID (logout).
find_session
Look up a session by ID, filtering out expired sessions.
generate_session_id
Generate a cryptographically random session ID (32 bytes, base64url-encoded).