Skip to main content

hash_token

Function hash_token 

Source
pub fn hash_token(token: &SessionToken) -> TokenHash
Expand description

Hash a session token with SHA-256.

The resulting hex string (64 chars) is what is stored in the database. The raw token is never persisted.