Skip to main content

validate_api_key

Function validate_api_key 

Source
pub async fn validate_api_key(
    provider_id: &str,
    api_key: &str,
) -> Result<(), String>
Expand description

Test a provider’s API key with a minimal request.

Returns Ok(()) if the key is valid, Err(msg) with a French error message otherwise.