Skip to content

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

ParameterType
params{ clientId: string; clientSecret: string; code: string; redirectUri: string; }
params.clientIdstring
params.clientSecretstring
params.codestring
params.redirectUristring

Returns

Promise&lt;OAuth2TokenResponse>