Structs§
- List
Sessions Params - Parameters for listing sessions in the admin session viewer.
- List
Sessions Result - Result of a paginated session list.
- Session
Config - Configuration for session lifecycle and cookie generation.
- Session
List Entry - A session with joined user email, for admin list display.
Omits
token_hash— the admin UI must never expose session tokens.
Functions§
- clear_
session_ cookie - Build a
Set-Cookieheader value that expires the session cookie. - generate_
token - Generate a cryptographically random session token.
- hash_
token - Hash a session token with SHA-256.
- parse_
session_ cookie - Extract the session token from a
Cookieheader value. - session_
cookie - Build a
Set-Cookieheader value for the given session token.