Skip to main content

generate_token

Function generate_token 

Source
pub fn generate_token() -> Result<String>
Expand description

Mint a fresh random auth token: 16 CSPRNG bytes rendered as 32 hex characters. Loopback bind + this token are the only security boundary, so the token must be unpredictable.