Skip to content

Commit 1cd85de

Browse files
committed
Show output in example
1 parent d5ded0c commit 1cd85de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/simple.rs

Lines changed: 4 additions & 1 deletion
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)