cognito with lambda verify_auth_challenge returning incorrect username or password when responding to custom challenge
I am trying to implement email based MFA using AWS congito and Lambda triggers and using lambda functions trigger and verify mfa_code. I am able to pass PASSWORD_VERIFIER challenge and also able to generate my custom MFA code, However when I try to exchange the MFA code using admin_respond_to_auth challenge function of boto3. I get incorrect email or password error. Here is my code,