Skip to main content

load_api_key_by_token_hash

Function load_api_key_by_token_hash 

Source
pub fn load_api_key_by_token_hash(
    token_hash: &str,
    vault_path: Option<&Path>,
) -> Result<ApiKeyFile, OwsLibError>
Expand description

Look up an API key by the SHA-256 hash of the token. Scans all key files — O(n) in the number of keys.