Skip to content

Commit

Permalink
Fix google_cloud_auth::project::create_token_source doc (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzuya authored Mar 26, 2024
1 parent e0fe8e9 commit 0ab379e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions foundation/auth/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ pub async fn create_token_source_from_project(
}
}

/// [Deprecated] create_token_source creates the token source
/// use `google_cloud_auth:bridge::DefaultTokenSourceProvider` instead.
/// create_token_source creates the token source
/// use [DefaultTokenSourceProvider](crate::token::DefaultTokenSourceProvider) instead.
#[deprecated(note = "Use DefaultTokenSourceProvider instead")]
pub async fn create_token_source(config: Config<'_>) -> Result<Box<dyn TokenSource>, error::Error> {
let project = project().await?;
create_token_source_from_project(&project, config).await
Expand Down

0 comments on commit 0ab379e

Please sign in to comment.