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
| Parameter | Type | Description |
|---|---|---|
params | { clientId: string; clientSecret: string; code: string; fetch?: FetchLike; redirectUri: string; } | - |
params.clientId | string | - |
params.clientSecret | string | - |
params.code | string | - |
params.fetch? | FetchLike | The fetch to reach Atlassian by. Defaults to the global one. |
params.redirectUri | string | - |
Returns
Promise<OAuth2TokenResponse>