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

    Loads a Nebius service-account credentials JSON file.

    The constructor reads the file immediately. It validates the algorithm, credential type, and equality of issuer and subject. Missing or malformed key identifiers and private-key values can fail later when the SDK signs or exchanges a token. Keep the file private because it contains the private key.

    import { SDK } from '@nebius/js-sdk';
    import { CredentialsFileReader } from '@nebius/js-sdk/runtime/service_account/credentials_file';

    const sdk = new SDK({
    // Passing the reader lets SDK create and connect the token-exchange flow.
    credentials: new CredentialsFileReader(
    '~/.config/nebius/service-account.json',
    ),
    userAgentPrefix: 'example-application/1.0',
    });

    Implements

    Indexable

    • [key: symbol]: (() => string) | (() => object)

      Loads a Nebius service-account credentials JSON file.

      The constructor reads the file immediately. It validates the algorithm, credential type, and equality of issuer and subject. Missing or malformed key identifiers and private-key values can fail later when the SDK signs or exchanges a token. Keep the file private because it contains the private key.

      • () => string
          • (): string
          • Loads a Nebius service-account credentials JSON file.

            The constructor reads the file immediately. It validates the algorithm, credential type, and equality of issuer and subject. Missing or malformed key identifiers and private-key values can fail later when the SDK signs or exchanges a token. Keep the file private because it contains the private key.

            Returns string

      • () => object
          • (): object
          • Returns a JSON-safe value for logs.

            Returns object

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

    Contains the fully qualified runtime type name.