Skip to main content

user_token

Function user_token 

Source
pub fn user_token(master: &str, user_id: &str) -> Result<String, String>
Expand description

Build a per-user bearer token: user_id.<hex(hmac_sha256(master, user_id))>.