Function: refreshOAuth2Token()
ts
function refreshOAuth2Token(params): Promise<OAuth2TokenResponse>;Defined in: src/core/oauth/helpers.ts:120
Refresh an access token.
Atlassian rotates the refresh token on every call: persist the one you get back and drop the old one, or the next refresh fails.
Parameters
| Parameter | Type | Description |
|---|---|---|
params | { clientId: string; clientSecret: string; fetch?: FetchLike; refreshToken: string; } | - |
params.clientId | string | - |
params.clientSecret | string | - |
params.fetch? | FetchLike | The fetch to reach Atlassian by. Defaults to the global one. |
params.refreshToken | string | - |
Returns
Promise<OAuth2TokenResponse>