Structs§
- Session
Record - A session record stored in the vault (only the HMAC of the token is stored, not the token itself).
Functions§
- generate_
session_ id - Generate a short unique session ID.
- generate_
token - Generate a session token and its HMAC. Returns (token_string, hmac_bytes).
- parse_
ttl - Parse a duration string like “1h”, “30m”, “7d”.
- validate_
token - Validate a token against stored session records. Returns the matching session record if valid.