exchangeAuthorizationCodeWithPkce

Deprecation Notice

This SDK is deprecated in favor of the Core and UI JS SDKs. See Migrating to the latest SDKs to use the latest Core and UI SDKs.

Support for the Legacy JS SDK ends on 28 February, 2021.

reach5('exchangeAuthorizationCodeWithPkce', {
  code: string,
  redirectUri: string,
})

About this command

Get an access token by providing an authorization code.

Only available if the PKCE is enabled or if the authorization code was retrieved from the loginWithSocialProvider function.

Examples

reach5('exchangeAuthorizationCodeWithPkce', {
  code: 'QVVUSE9SSVpBVElPTl9DT0RF',
  redirectUri: 'https://www.example.com/login/callback'
})

Parameters

verificationCode string

Verification code for request password reset flow.

redirectUri string

The URL the user will be redirected to after clicking the password reset page link.