Skip to main content

resolve_api_key

Function resolve_api_key 

Source
pub fn resolve_api_key(
    api_key: Option<SecretString>,
) -> Result<SecretString, Error>
Expand description

Resolves an explicit key or reads FINFEED_API_KEY once.

ยงErrors

Returns an error if the key is missing, empty, or contains anything other than visible ASCII characters.