Skip to main content

generate_token

Function generate_token 

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

Mints a fresh, opaque invite token: 24 bytes of OS entropy, URL-safe base64 (DESIGN.md §6).

§Errors

Returns an error if the OS random source cannot be read.