(cognito): SMS configuration and verification is required when OTP is chosen #12075
Labels
@aws-cdk/aws-cognito
Related to Amazon Cognito
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
Cannot build a User Pool with MFA using OTP without phone number configuration and verification which is inconsistent with the console
Reproduction Steps
What did you expect to happen?
In the console I can create User Pool with the above configuration. I would expect the same behaviour on the CDK
What actually happened?
I got this error
SMS configuration and Auto verification for phone_number are required when MFA is required/optional (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; R
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: