'Track Amplify SDK calls in Cloudwatch/Cloudtrail

We are using Amplify-js in our React app for Cognito-related actions like SignIn/Signout. SignIn (Auth.SignIn) fails with an error:

Cannot read properties of undefined (reading 'USER_ID_FOR_SRP'

What I can't figure out is the best way to track the Amplify-js calls? I don't see much in CloudTrail event history or Cloudwatch related to this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source