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

    Controls token renewal for one RPC.

    Most applications can use the defaults. These options are useful for a request that must force a fresh token or report a renewal error immediately.

    interface AuthorizationOptions {
        maxRetries?: number;
        renewRequestTimeoutMs?: number;
        renewRequired?: boolean;
        renewSynchronous?: boolean;
        reportError?: boolean;
    }
    Index
    maxRetries?: number

    Sets the maximum interceptor authentication attempts for this RPC.

    A credential source can perform separate inner or background attempts.

    renewRequestTimeoutMs?: number

    Sets the timeout for the underlying renewal request, in milliseconds.

    renewRequired?: boolean

    Requests renewal.

    A valid cached token can still be returned unless AuthorizationOptions.renewSynchronous or AuthorizationOptions.reportError makes the caller wait for the renewal result.

    renewSynchronous?: boolean

    Waits for forced renewal before the RPC starts.

    reportError?: boolean

    Rejects the authentication attempt when renewal fails instead of using a valid cached token.