pub fn get_api_key_with_mode(
provider: &str,
_sources: &ApiKeySources,
storage_mode: AuthCredentialsStoreMode,
) -> Result<String>Expand description
Get an API key using the configured secure-storage backend.
Environment variables remain the highest-priority source. Secure storage
is read with storage_mode so a key written to an explicitly configured
backend is resolved from that same backend on every startup.