0

I am using

USER_PASSWORD_AUTH

for authFlow. Currently Im receiving OTP for login. How can I bypass OTP

Want to stop receiving OTP for login, instead get OTP during signup

vjflcr
  • 1

1 Answers1

1

You should be able to disable the MFA for Cognito.

One of the options is to do so via CLI aws cognito-idp set-user-pool-mfa-config --mfa-configuration OFF --user-pool-id <your_user_pool_id>

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cognito-idp/set-user-pool-mfa-config.html

unacorn
  • 827
  • 10
  • 27
  • Is there a way to enable MFA during signup – vjflcr Dec 08 '22 at 01:52
  • 1
    You should be able to configure that in Cognito new console experience. At step 3 "Configure sign-up experience" you can check the box for "Cognito-assisted verification and confirmation" https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html – unacorn Dec 08 '22 at 04:59
  • Somehow Im not getting OTP for phone number verification. Instead I get a temporary password. Is that expected? – vjflcr Dec 09 '22 at 10:07