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.
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 a JSON-safe value for logs.
Reads filename; a leading ~ resolves to the home directory.
Optionallogger: LoggerReadonly$typeContains the fully qualified runtime type name.
Returns a JSON-safe value for logs.
Returns the exchange token request.
Creates a service-account value from the credentials held in memory.
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.
Example