@backblaze-labs/b2-mcp
    Preparing search index...

    Class B2AuthManager

    Auth cache around one official B2 SDK client for one resolved credential set.

    B2 authorization tokens are valid for 24 hours. The manager caches them for 23 hours, deduplicates concurrent authorize calls, syncs auth refreshed by the SDK, and invalidates on 401 retry paths in the B2 client boundary.

    Index
    • Return the immutable runtime config for this auth manager.

      Returns B2Config

      B2 runtime configuration.

    • Invalidate cached auth and clear the SDK account cache.

      Returns void

    • Sync cached auth from the official SDK account-info cache.

      Returns void

      The SDK may refresh authorization internally during retry handling. This method keeps the MCP auth manager's flattened cache and URL guard aligned with that SDK-owned state.