pub async fn validate(provider: &str, key: &str) -> ValidationOutcomeExpand description
Validate key for provider. Makes one outbound HTTPS request. Returns
a non-valid outcome (never errors the RPC) so the caller can surface a
structured message and stay in the entry state. A stored OAuth token blob
is validated by its access token (oauth_tokens::bearer_value); an
expired one should be refreshed first (oauth_tokens::access_token_for).