Skip to content

Commit ec047ea

Browse files
committed
Show output in example
1 parent 488627c commit ec047ea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/simple.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
88
.unwrap();
99

1010
let token_provider = gcp_auth::provider().await?;
11-
let _token = token_provider
11+
let token = token_provider
1212
.token(&["https://www.googleapis.com/auth/cloud-platform"])
1313
.await?;
14+
15+
tracing::info!(email = token_provider.email().await?, token = ?token);
16+
1417
Ok(())
1518
}

0 commit comments

Comments
 (0)