Expand description
Session management — trait definition and helper functions.
Structs§
- Session
Data - Session data stored in the backend
- Token
Pair - Token pair returned after successful authentication
Traits§
- Session
Store - 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.