Exchanges a user OAuth access token for a short-lived, non-refreshable Agent token.
Tokens are cached only in memory, never written to disk, and exchanged again only after the cached token reaches its refresh boundary. The provider requires the client request context to match its configured resource and scope ceiling.
new AgentDelegationCredentialProvider(
options):AgentDelegationCredentialProvider
AgentDelegationCredentialProviderOptions
AgentDelegationCredentialProvider
clear():
void
Drop the in-memory token without revoking or persisting it.
void
getCredential(
context):Promise<string>
Promise<string>
CredentialProvider.getCredential
Was this page helpful?