Skip to main content

generate_token

Function generate_token 

Source
pub fn generate_token() -> SessionToken
Expand description

Generate a cryptographically random session token.

Fills 32 bytes from the OS random source and encodes them as base64url without padding, producing a 43-character string.