Provides one fixed access token.
This bearer does not renew the token and does not retry authentication. Prefer a renewable credential source for long-running applications.
Returns a JSON-safe value for logs.
Creates a bearer for a non-empty token string or Token.
Readonly$typeContains the fully qualified runtime type name.
Returns the provider name for authorization metrics.
Returns the stable credential name used by file-backed token caches.
Most bearers do not have a name. Wrappers can add one with NamedBearer.
Returns the next bearer in a wrapper chain, when this bearer wraps another source.
Returns a JSON-safe value for logs.
Stops owned background work and closes the wrapped bearer.
OptionalgraceMs: numberCreates a token receiver.
Provides one fixed access token.
This bearer does not renew the token and does not retry authentication. Prefer a renewable credential source for long-running applications.
Example