* For Atlassian service accounts, the API token IS the access token — * blocks call api.atlassian.com/ex/jira/{cloudId}/... with `Authorization: Bearer {apiToken}`. * No exchange or refresh is needed; we just decrypt and return the raw token.
(credentialId: string)
| 265 | * No exchange or refresh is needed; we just decrypt and return the raw token. |
| 266 | */ |
| 267 | async function getAtlassianServiceAccountToken(credentialId: string): Promise<string> { |
| 268 | const secret = await getAtlassianServiceAccountSecret(credentialId) |
| 269 | return secret.apiToken |
| 270 | } |
| 271 | |
| 272 | /** |
| 273 | * Safely inserts an account record, handling duplicate constraint violations gracefully. |
no test coverage detected