Skip to content

Commit

Permalink
Update yup-oauth2 to 8.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiadliel committed Nov 29, 2022
1 parent d8a3419 commit c6039c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion google-apis-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions google-apis-common/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down Expand Up @@ -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())
})
}
Expand Down
2 changes: 1 addition & 1 deletion google-clis-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c6039c0

Please sign in to comment.