Skip to main content

generate_token

Function generate_token 

Source
pub fn generate_token() -> String
Expand description

Generate a cryptographically random URL-safe base64 token.

The token contains at least 32 bytes of entropy from the OS CSPRNG, encoded as URL-safe base64 (no padding). This produces a 43-character string.