@nebius/js-sdk - v0.2.54
    Preparing search index...

    Class BearerAbstract

    Describes a credential source and creates receivers for it.

    Use a concrete bearer such as StaticBearer, FileBearer, or ServiceAccountBearer. Pass that bearer as SDKOptions.credentials. A bearer can own timers or other resources, so close the SDK when the application shuts down.

    Hierarchy (View Summary)

    Index
    $type: string

    Contains the fully qualified runtime type name.

    • get metricProvider(): string

      Returns the provider name for authorization metrics.

      Returns string

    • get name(): string | undefined

      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 string | undefined

    • get wrapped(): Bearer | undefined

      Returns the next bearer in a wrapper chain, when this bearer wraps another source.

      Returns Bearer | undefined

    • Stops owned background work and closes the wrapped bearer.

      Parameters

      • OptionalgraceMs: number

      Returns Promise<void>