Skip to content

Commit

Permalink
[Identity] Clearer message on the getToken methods (#11487)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadasant authored Sep 29, 2020
1 parent 931539a commit cc8c8fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/core/core-auth/src/tokenCredential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export interface TokenCredential {
/**
* Gets the token provided by this credential.
*
* This method is called automatically by Azure SDK client libraries. You may call this method
* directly, but you must also handle token caching and token refreshing.
*
* @param scopes The list of scopes for which the token will have access.
* @param options The options used to configure any requests this
* TokenCredential implementation might make.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export class ChainedTokenCredential implements TokenCredential {
* `TokenCredential` implementations. Throws an {@link AggregateAuthenticationError}
* when one or more credentials throws an {@link AuthenticationError} and
* no credentials have returned an access token.
*
* This method is called automatically by Azure SDK client libraries. You may call this method
* directly, but you must also handle token caching and token refreshing.
*
* @param scopes The list of scopes for which the token will have access.
* @param options The options used to configure any requests this
Expand Down

0 comments on commit cc8c8fc

Please sign in to comment.