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

    Interface AuthContextAwareAccountInfo

    Optional extension for persistent auth stores that need to bind cached auth to the current client configuration. B2Client calls these hooks during construction before it reuses any loaded auth.

    interface AuthContextAwareAccountInfo {
        setApplicationKeyId(applicationKeyId: string): void;
        setRealmUrl(realmUrl: string): void;
    }

    Implemented by

    Index

    Methods

    • Bind persistent auth caches to the configured application key ID. Implementations that persist auth should discard loaded state written for a different key ID.

      Parameters

      • applicationKeyId: string

      Returns void

    • Bind persistent auth caches to the resolved realm URL. Implementations that persist auth should discard loaded state written for a different realm.

      Parameters

      • realmUrl: string

      Returns void