Skip to main content

load_or_create_api_token

Function load_or_create_api_token 

Source
pub fn load_or_create_api_token(
    config_path: impl AsRef<Path>,
    configured_path: Option<&str>,
) -> Result<LoadedApiToken, ApiSecurityError>
Expand description

Resolve and load the configured API token, creating a random owner-only token if absent.