Closed dhara-seaflux closed 5 months ago
I have the same issue. Upon sending valid credentials, the session is always null so any attempt for TOTP or SMS_MFA fails.
please check if you have session here: https://github.com/furaiev/amazon-cognito-identity-dart-2/blob/main/lib/src/cognito_user.dart#L931
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Have you been able to fix it somehow? @dhara-seaflux @miavorac
Hi, sorry for late reply but yes. It works now!
I didn't know that I need to call sendMFACode for 2FA auth. So all good now.
Thank you 🙏
When attempting to authenticate the user in my app, I encountered a CognitoUserMfaRequiredException, indicating that MFA is required for my user pool. Upon receiving this exception, I attempted to send the OTP using the sendMFACode function, but encountered the following error:
flutter: CognitoUserException: "SMS_MFA" flutter: MFA is required: CognitoUserException: "SMS_MFA" flutter: CognitoClientException{statusCode: 400, code: InvalidParameterException, name: InvalidParameterException, message: Missing required parameter Session}