pub fn create_http_client() -> Result<Client>Expand description
Creates an HTTP client configured for OAuth2 token requests.
Redirects are explicitly disabled, as OAuth2 flows manage redirects at the protocol level rather than the HTTP level. Allowing automatic redirects could silently swallow authorization errors or redirect sensitive credentials to unintended endpoints.
ยงErrors
Returns an error if the HTTP client fails to initialize, which may occur if the underlying TLS backend cannot be loaded.