Skip to content

Commit

Permalink
create_credential docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cataggar committed Jan 7, 2024
1 parent 36faf41 commit dd78724
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub mod azure_credential_types {
pub const CLIENT_CERTIFICATE: &str = "clientcertificate";
}

/// Creates a `SpecificAzureCredential` if `AZURE_CREDENTIAL_TYPE` environment variable is set.
/// Otherwise, creates a `DefaultAzureCredential`.
/// Creates a `DefaultAzureCredential` by default with default options.
/// If `AZURE_CREDENTIAL_TYPE` environment variable is set, it creates a `SpecificAzureCredential` with default options.
pub fn create_credential() -> azure_core::Result<Arc<dyn TokenCredential>> {
create_credential_with_options(options::TokenCredentialOptions::default())
}
Expand Down

0 comments on commit dd78724

Please sign in to comment.