Skip to content

Commit

Permalink
Show output in example
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Jul 11, 2024
1 parent 488627c commit ec047ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.unwrap();

let token_provider = gcp_auth::provider().await?;
let _token = token_provider
let token = token_provider
.token(&["https://www.googleapis.com/auth/cloud-platform"])
.await?;

tracing::info!(email = token_provider.email().await?, token = ?token);

Ok(())
}

0 comments on commit ec047ea

Please sign in to comment.