jira.js
    Preparing search index...

    Function createServerOAuth2Manager

    • Holds the OAuth 2.0 token state for one Data Center client.

      The Cloud manager's counterpart to this file spends most of its length resolving a cloud id and picking between the sites a 3LO token can reach. None of that exists here: a self-hosted instance is the one site, and getBaseUrl hands back the host it was given. What remains is the part that is genuinely shared — refresh before expiry, single -flighted so N concurrent requests produce one token call, and report the rotated refresh token onwards.

      Implements the same interface as the Cloud manager so the transport keeps one code path for both.

      Parameters

      Returns OAuth2Manager