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

    Reads one fixed access token from an environment variable.

    The constructor reads the variable immediately. It throws NoTokenInEnvError when the variable is missing or empty after trimming.

    Hierarchy (View Summary)

    Indexable

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

      Reads one fixed access token from an environment variable.

      The constructor reads the variable immediately. It throws NoTokenInEnvError when the variable is missing or empty after trimming.

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

          Returns unknown

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

    Contains the fully qualified runtime type name.

    • get acquisitionBudgetMs(): number | undefined

      Returns the budget for one token acquisition, in milliseconds.

      undefined means no declared budget. A non-positive value means an immediate failure. A cache asks only its immediate source. Transparent wrappers must forward this value; wrappers that add work must compose it.

      Returns number | undefined

    • 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>