8. Setup Cognito Extension

To fix the issue where necessary information is missing from the claims in the previous test results, in this section we will add a Cognito Extension to intervene before the token is generated.

pre-generation-trigger

Content

  1. Build a Lambda pre-generation token trigger
  2. Add the Lambda trigger to Cognito