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

    Reads a named token from a shared file cache and refreshes it through another bearer when required.

    The first fetch prefers a valid cache entry. After an authentication error, the receiver checks the file again, then asks the wrapped bearer for a fresh token and writes it back. The wrapped bearer must have a stable name.

    Hierarchy (View Summary)

    • Bearer
      • RenewableFileCacheBearer

    Indexable

    • [key: symbol]: () => unknown

      Reads a named token from a shared file cache and refreshes it through another bearer when required.

      The first fetch prefers a valid cache entry. After an authentication error, the receiver checks the file again, then asks the wrapped bearer for a fresh token and writes it back. The wrapped bearer must have a stable name.

        • (): unknown
        • Returns a JSON-safe value for logs.

          Returns unknown

    Index
    $type: "nebius.sdk.RenewableFileCacheBearer" = 'nebius.sdk.RenewableFileCacheBearer'

    Contains the fully qualified runtime type name.

    Contains the metrics.

    safetyMargin: number | null

    Minimum remaining lifetime required to accept the first cached token, in milliseconds.

    • 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

    • Stops owned background work and closes the wrapped bearer.

      Parameters

      • OptionalgraceMs: number

      Returns Promise<void>