feat(auth): Adding `AnalyticsMetadata` to the cognito requests where applicable.
Description of changes
Propagating AnalyticsMetadata (doc) among with some cognito requests, where applicable, so cognito statistics are reflected in AWS Pinpoint analytics.
Issue #12877
Description of how you validated changes
SignUp request linked library produces, screenshot from browser:
After confirming email, I can observe sign up event on Pinpoint Analytics dashboard
Checklist
- [x] PR description included
- [x]
yarn testpasses - [x] Tests are changed or added
- [ ] Relevant documentation is changed or added (and PR referenced)
Checklist of requests to propagate metadata with
- [x] ConfirmForgotPasswordRequest
- [x] ConfirmSignUpRequest
- [x] InitiateAuthRequest
- [x] ResendConfirmationCodeRequest
- [x] RespondToAuthChallengeRequest
- [x] SignUpRequest
Testing in sample project
To test in sample project, one needs to yarn link both @aws-amplify/core and @aws-amplify/auth, because base Amplify config changed as well.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
@elorzafe @nadetastic ping
Closing it in an absence of any attention from maintainers