pub async fn fetch_anthropic_profile(
client: &Client,
access_token: &str,
endpoint_override: Option<&str>,
) -> Result<AnthropicProfile, String>Expand description
GET the profile for access_token and parse it. endpoint_override is
a loopback-only test seam. The caller’s client should follow no
redirects (see super::identity::identity_http_client); a 3xx is an
error here regardless. Errors never contain the token or upstream bytes.