Provides low-level interfaces and helper methods for authentication in Azure SDK
Overall
score
97%
{
"context": "This criteria evaluates the engineer's ability to use @azure/core-auth's GetTokenOptions with AbortSignal integration for request cancellation. The focus is on properly passing abort signals to TokenCredential.getToken() and handling cancellation scenarios.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses TokenCredential interface",
"description": "The implementation correctly uses the TokenCredential interface from @azure/core-auth to accept credential objects, specifically calling the getToken() method",
"max_score": 20
},
{
"name": "Passes abortSignal option",
"description": "The implementation correctly passes the abortSignal from the options parameter to the GetTokenOptions when calling credential.getToken(scopes, { abortSignal })",
"max_score": 30
},
{
"name": "Uses AbortSignalLike type",
"description": "The implementation uses the AbortSignalLike type from @azure/abort-controller in the FetchTokenOptions interface definition",
"max_score": 15
},
{
"name": "Returns AccessToken type",
"description": "The function correctly returns a Promise<AccessToken> where AccessToken is the type returned by TokenCredential.getToken()",
"max_score": 15
},
{
"name": "Handles cancellation errors",
"description": "The implementation properly allows cancellation errors to propagate (either by letting them throw naturally or by explicitly handling and re-throwing them)",
"max_score": 20
}
]
}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