Creates a new cached impersonated bearer.
Optionalopts: {Optionallogger?: LoggerOptional destination for diagnostic events.
OptionalmaxRetries?: numberMaximum total authentication attempts for one receiver. Defaults to 2.
Optionalmetrics?: AuthMetricsInputOptional authentication metrics destination.
OptionalrefreshRequestTimeoutMs?: number | nullTotal actor and exchange budget, in milliseconds.
The default null uses the composed source budget, or five seconds.
Explicit zero and negative values stay unchanged.
Readonly$typeContains the fully qualified runtime type name.
Returns the acquisition budget of the cached bearer chain.
Returns the provider name for authorization metrics.
Returns the credential name.
Returns the wrapped bearer.
Stops owned background work and closes the wrapped bearer.
OptionalgraceMs: numberCreates a token receiver.
Adds in-memory renewal to ImpersonatedBearer.
Use this variant for normal SDK requests so repeated calls reuse the impersonated access token until renewal is required.
Example