MCPcopy Index your code
hub / github.com/simstudioai/sim / getAtlassianServiceAccountToken

Function getAtlassianServiceAccountToken

apps/sim/app/api/auth/oauth/utils.ts:267–270  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

265 * No exchange or refresh is needed; we just decrypt and return the raw token.
266 */
267async 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.

Callers 1

Calls 1

Tested by

no test coverage detected