You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(auth): Add email MFA support to Amplify Auth construct (#3036)
## Problem
This PR adds support for email-based multi-factor authentication (MFA)
to the Amplify Auth construct. Previously, the Auth construct only
supported SMS and TOTP MFA methods, limiting authentication options for
applications that prefer
email-based verification.
Issue number, if available:
- aws-amplify/amplify-ui#6590
- #2159
## Changes
• **Auth Construct**: Added email MFA configuration support in
construct.ts with new type definitions in types.ts
• **API Updates**: Extended public API to include email MFA options with
TypeScript types
• **Client Configuration**: Updated all client config schema versions
(v1, v1.1-v1.4) to support email MFA settings
• **Documentation**: Updated API.md and README.md with email MFA usage
examples
• **Test Coverage**: Added comprehensive unit tests for email MFA
functionality
**Corresponding docs PR, if applicable:**
- aws-amplify/docs#8465
## Validation
• **Unit Tests**: Added 56 lines of test coverage in construct.test.ts
validating email MFA configuration and behavior
• **Manual testing**: I tested on a amplify sample app which is linked
locally with amplify-backend. I set the email MFA to true and false and
checked it updates correctly in the Cognito user pool
## Checklist
- [ ] If this PR includes a functional change to the runtime behavior of
the code, I have added or updated automated test coverage for this
change.
- [ ] If this PR requires a change to the [Project Architecture
README](../PROJECT_ARCHITECTURE.md), I have included that update in this
PR.
- [ ] If this PR requires a docs update, I have linked to that docs PR
above.
- [ ] If this PR modifies E2E tests, makes changes to resource
provisioning, or makes SDK calls, I have run the PR checks with the
`run-e2e` label set.
_By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license._
### Customized email and phone login with external login providers
51
81
52
82
In this example, you will create a stack with email, phone, and external login providers. Additionally, you can customize the email and phone verification messages.
0 commit comments