botas-core
    Preparing search index...

    Class TokenManager

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Acquire a Bot Service access token for outbound API calls.

      Returns null when no credentials are configured (dev/testing mode). Caches tokens via MSAL and deduplicates concurrent requests.

      Returns Promise<string | null>

      A Bearer token string, or null if auth is not configured.

      If token acquisition fails (error is also negative-cached for 30 s).