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

    Interface RetryTransportOptions

    Configuration for RetryTransport.

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

    Properties

    onReauth?: () => Promise<string>

    Callback invoked on expired auth token errors. Must refresh credentials AND return the fresh auth token. 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.