Skip to main content

hash_authorization_code

Function hash_authorization_code 

Source
pub fn hash_authorization_code(raw: &str) -> TokenHash
Expand description

Hash a raw authorization code with SHA-256.

Returns the hex-encoded digest as a TokenHash. Same pattern as sessions::hash_token().