Merge branch 'update_yup_oauth'

This commit is contained in:
Sebastian Thiel
2022-11-30 07:32:46 +01:00
3 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ base64 = "0.13.0"
chrono = { version = "0.4.22", features = ["serde"] }
url = "= 1.7"
yup-oauth2 = { version = "^ 7.0", optional = true }
yup-oauth2 = { version = "^ 8.0", optional = true }
itertools = "^ 0.10"
hyper = { version = "^ 0.14", features = ["client", "http2"] }
http = "^0.2"

View File

@@ -57,7 +57,7 @@
//! for _ in 0..=self.retries {
//! match self.auth.token(scopes).await {
//! Ok(token) => {
//! auth_token = Ok(Some(token.as_str().to_owned()));
//! auth_token = Ok(token.token().map(|t| t.to_owned()));
//! break;
//! },
//! Err(e) => auth_token = Err(e.into()),
@@ -146,7 +146,7 @@ mod yup_oauth2_impl {
Box::pin(async move {
self.token(scopes)
.await
.map(|t| Some(t.as_str().to_owned()))
.map(|t| t.token().map(|t| t.to_owned()))
.map_err(|e| e.into())
})
}

View File

@@ -17,7 +17,7 @@ doctest = false
[dependencies]
mime = "^ 0.3"
yup-oauth2 = "^ 7.0"
yup-oauth2 = "^ 8.0"
serde = "1"
serde_json = "1"
strsim = "0.10.0"