AWS Cognito Authentication Guide Missing Details

Please provide the following:

  1. SDK Version: 47
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

Replace this section with as much relevant information as possible and any relevant code along with your question.

When used the given example. I was getting an error.
Find more Details here
The example is missing the passing of client secret.

const clientId = '<your-client-id-here>';
const userPoolUrl =
  'https://<your-user-pool-domain>.auth.<your-region>.amazoncognito.com';
const redirectUri = 'your-redirect-uri';
**const clientSecret = 'app-client-secret'**;
          exchangeFn({
                    clientId,
                    code: response.params.code,
                    redirectUri,
                    **clientSecret,**
                    extraParams: {
                        code_verifier: request.codeVerifier,
                    },
                });

Please update the guide.