getBitbucketCloudOAuthToken()
Home > @backstage/integration > 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.
Signature:
function getBitbucketCloudOAuthToken(clientId: string, clientSecret: string): Promise<string>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
clientId |
string |
OAuth client ID |
|
clientSecret |
string |
OAuth client secret |
Returns:
Promise<string>