Skip to main content

generate_api_key

Function generate_api_key 

Source
pub fn generate_api_key(environment: &str) -> GeneratedApiKey
Expand description

Generate a new API key for the given environment.

Returns a GeneratedApiKey with the raw key (show once), a prefix for database lookup, and a SHA-256 hash for storage.