AuthorizationLike interface

Minimal authorization shape required by AgenticTokenCache.

Mirrors the Authorization interface from @microsoft/agents-hosting so the cache can be used without a direct dependency on that package.

Method Details

exchangeToken(TurnContextLike, string, { scopes: string[] })

function exchangeToken(turnContext: TurnContextLike, authHandlerName: string, options: { scopes: string[] }): Promise<undefined | { token?: string }>

Parameters

turnContext
TurnContextLike
authHandlerName

string

options

{ scopes: string[] }

Returns

Promise<undefined | { token?: string }>