Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | export interface AccessToken {
token: string
tokenType?: 'Bearer' | 'pop'
expiresOnTimestamp: number
refreshAfterTimestamp?: number
}
/** The structural signal Azure SDK clients pass; a native `AbortSignal` satisfies it. */
export interface AbortSignalLike {
readonly aborted: boolean
readonly reason?: unknown
addEventListener: (type: 'abort', listener: (event: unknown) => void) => void
removeEventListener: (type: 'abort', listener: (event: unknown) => void) => void
}
/** The second `getToken` argument of `@azure/core-auth`, limited to the options credentials honor. */
export interface GetTokenOptions {
abortSignal?: AbortSignalLike
/** Tenant for this request; other tenants must be listed in `additionallyAllowedTenants`. */
tenantId?: string
/** JSON claims challenge from a resource; it bypasses the token cache. */
claims?: string
/** Requests a token for continuous access evaluation. */
enableCae?: boolean
}
export interface TokenCredential {
getToken: (scopes: string | string[], options?: GetTokenOptions) => Promise<AccessToken | null>
}
|