Skip to main content

Module session

Module session 

Source
Expand description

Session management — trait definition and helper functions.

Structs§

SessionData
Session data stored in the backend
TokenPair
Token pair returned after successful authentication

Traits§

SessionStore
SessionStore trait - implement this for your storage backend

Functions§

generate_refresh_token
Generate a cryptographically secure refresh token.
hash_token
Compute a SHA-256 hex digest of a refresh token for secure storage.