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

    Interface FileAccountInfoOptions

    Optional observers for file-backed auth cache behavior.

    interface FileAccountInfoOptions {
        onDiscard?: (event: FileAccountInfoDiscardEvent) => void;
        onWriteError?: (event: FileAccountInfoWriteErrorEvent) => void;
    }
    Index

    Properties

    onDiscard?: (event: FileAccountInfoDiscardEvent) => void

    Called when loaded auth is ignored because its metadata or cached endpoints are unsafe for this client. The on-disk file is left untouched so another process using a different realm/key is not clobbered.

    onWriteError?: (event: FileAccountInfoWriteErrorEvent) => void

    Called when an asynchronous auth-cache write fails.