Function: exchangeAuthorizationCode()
ts
function exchangeAuthorizationCode(params): Promise<OAuth2TokenResponse>;Defined in: src/core/oauth/helpers.ts:90
Stable
Exchange the authorization code from the redirect callback for tokens.
Parameters
| Parameter | Type |
|---|---|
params | { clientId: string; clientSecret: string; code: string; redirectUri: string; } |
params.clientId | string |
params.clientSecret | string |
params.code | string |
params.redirectUri | string |
Returns
Promise<OAuth2TokenResponse>