Skip to content

Function: exchangeAuthorizationCode() ​

ts
function exchangeAuthorizationCode(params): Promise<OAuth2TokenResponse>;

Defined in: src/core/oauth/helpers.ts:89

Exchange the authorization code from the redirect callback for tokens.

Parameters ​

ParameterTypeDescription
params{ clientId: string; clientSecret: string; code: string; fetch?: FetchLike; redirectUri: string; }-
params.clientIdstring-
params.clientSecretstring-
params.codestring-
params.fetch?FetchLikeThe fetch to reach Atlassian by. Defaults to the global one.
params.redirectUristring-

Returns ​

Promise<OAuth2TokenResponse>