@backblaze-labs/b2-sdk - v0.4.0
    Preparing search index...

    Interface RetryTransportOptions

    Configuration for RetryTransport.

    interface RetryTransportOptions {
        onReauth?: (signal?: AbortSignal) => Promise<string>;
        retry?: Partial<RetryOptions>;
        transport: HttpTransport;
    }
    Index
    onReauth?: (signal?: AbortSignal) => Promise<string>

    Callback invoked on expired auth token errors. Must refresh credentials AND return the fresh auth token. The original request's abort signal is forwarded so reauthorization can be cancelled with the operation that triggered it. The transport substitutes the new token into request.headers.Authorization before retrying — without this, the retried request would still carry the expired token captured by the original caller and the loop would never make progress.

    retry?: Partial<RetryOptions>

    Override default retry settings (max retries, delays).

    transport: HttpTransport

    The underlying transport to delegate requests to.