Provides low-level interfaces and helper methods for authentication in Azure SDK
Overall
score
97%
Build a token management utility that retrieves authentication tokens with support for request cancellation.
Your utility should provide a function that retrieves authentication tokens from a credential provider while supporting:
Create a module that exports a fetchTokenWithCancellation function with the following behavior:
abortSignal property@generates
export interface FetchTokenOptions {
abortSignal?: AbortSignalLike;
}
export async function fetchTokenWithCancellation(
credential: TokenCredential,
scopes: string[],
options?: FetchTokenOptions
): Promise<AccessToken>;Provides authentication interfaces and token credential types.
@satisfied-by
Provides abort signal and controller types for cancellation support.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-azure--core-authdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10