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

    Runs one interactive OAuth federation login.

    This low-level bearer starts a loopback HTTP callback server and opens the authorization URL in a browser. Set noBrowserOpen when the user must open the URL manually. It does not cache or renew the returned token; normal SDK configuration uses FederationAccountBearer for those features.

    Hierarchy (View Summary)

    Indexable

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

      Runs one interactive OAuth federation login.

      This low-level bearer starts a loopback HTTP callback server and opens the authorization URL in a browser. Set noBrowserOpen when the user must open the URL manually. It does not cache or renew the returned token; normal SDK configuration uses FederationAccountBearer for those features.

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

          Returns unknown

    Index
    • Creates an interactive login source.

      writer receives the authorization URL. The default writer uses console.log. ca adds a trusted CA certificate for the token request.

      Parameters

      • profileName: string
      • clientId: string
      • federationEndpoint: string
      • federationId: string
      • Optionalwriter: (s: string) => void
          • (s: string): void
          • Creates an interactive login source.

            writer receives the authorization URL. The default writer uses console.log. ca adds a trusted CA certificate for the token request.

            Parameters

            • s: string

            Returns void

      • noBrowserOpen: boolean = false
      • Optionalca: Buffer<ArrayBufferLike>
      • Optionallogger: Logger
      • Optionalmetrics: AuthMetricsInput

      Returns FederationBearer

    $type: "nebius.sdk.FederationBearer" = 'nebius.sdk.FederationBearer'

    Contains the fully qualified runtime type name.

    • get metricProvider(): string

      Returns the provider name for authorization metrics.

      Returns string

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