Skip to content

Commit 51bd5b0

Browse files
authored
Update comments for DefaultAzureCredential usage
Clarify comments regarding the use of DefaultAzureCredential in the EntraIdCredentialsProviderFactory.
1 parent e6025b1 commit 51bd5b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/entraid/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ const credential = getDefaultAzureCredential();
100100

101101
// Create a provider using DefaultAzureCredential
102102
const provider = EntraIdCredentialsProviderFactory.createForDefaultAzureCredential({
103-
// Use the same parameters you would pass to credential.getToken()
103+
104104
credential,
105105
scopes: REDIS_SCOPE_DEFAULT, // The Redis scope
106106
// Optional additional parameters for getToken
107107
options: {
108-
// Any options you would normally pass to credential.getToken()
108+
// Any options you would normally pass to azure's default credential.getToken()
109109
},
110110
tokenManagerConfig: {
111111
expirationRefreshRatio: 0.8

0 commit comments

Comments
 (0)