mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-06 19:29:39 +01:00
Rename Error::ClientError and RefreshError::ConnectionError to HttpError.
PollError already contained an HttpError variant so this makes all variants that contain a hyper::Error consistently named.
This commit is contained in:
@@ -153,7 +153,7 @@ impl DeviceFlow {
|
||||
.header(header::CONTENT_TYPE, "application/x-www-form-urlencoded")
|
||||
.body(hyper::Body::from(req))
|
||||
.unwrap();
|
||||
let resp = client.request(req).await.map_err(Error::ClientError)?;
|
||||
let resp = client.request(req).await?;
|
||||
// This return type is defined in https://tools.ietf.org/html/draft-ietf-oauth-device-flow-15#section-3.2
|
||||
// The alias is present as Google use a non-standard name for verification_uri.
|
||||
// According to the standard interval is optional, however, all tested implementations provide it.
|
||||
|
||||
Reference in New Issue
Block a user