Backstage
    Preparing search index...

    Function getBitbucketCloudOAuthToken

    • Fetches an OAuth access token from Bitbucket Cloud using client credentials flow. Tokens are cached with a 10-minute grace period to account for clock skew. Implements concurrent refresh protection to prevent multiple simultaneous token requests.

      Parameters

      • clientId: string

        OAuth client ID

      • clientSecret: string

        OAuth client secret

      Returns Promise<string>