AWS COGNITO: Stop receiving OTP for login

216 Views Asked by At

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

1

There are 1 best solutions below

3
unacorn On

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