-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: map headless auth pw recovery to auto-verified attrs #9786
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9786 +/- ##
==========================================
+ Coverage 53.00% 53.02% +0.01%
==========================================
Files 830 830
Lines 46012 46016 +4
Branches 9826 9823 -3
==========================================
+ Hits 24390 24401 +11
+ Misses 19604 19597 -7
Partials 2018 2018
Continue to review full report at Codecov.
|
packages/amplify-headless-interface/schemas/auth/1/AddAuthRequest.schema.json
Outdated
Show resolved
Hide resolved
packages/amplify-headless-interface/schemas/auth/1/UpdateAuthRequest.schema.json
Outdated
Show resolved
Hide resolved
packages/amplify-headless-interface/schemas/auth/1/AddAuthRequest.schema.json
Outdated
Show resolved
Hide resolved
packages/amplify-headless-interface/schemas/auth/1/UpdateAuthRequest.schema.json
Outdated
Show resolved
Hide resolved
…equest.schema.json
👋 Hi, this pull request was referenced in the v7.6.23 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v7.6.23. |
Description of changes
passwordRecovery options were mapped to autoVerified attributes in the v1 headless schema. the v2 schema instead specified autoVerifiedAttributes explicitly. Additionally, a translation function is added to map incoming v1 requests to the correct v2 request.
Related docs PR: aws-amplify/docs#4046
Issue #, if available
fixes #9756
Description of how you validated changes
Manually, added unit tests, updated e2e tests
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.