Closed Kulodo closed 8 months ago
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.
I encountered same issue. The session is null so there's nothing I can do with proceeding and verifying the TOTP code for the user
In the Amazon Cognito userPool setup there is the option to have "required MFA" or "optional MFA". When I select "required MFA" and then run my app I get the MFA_SETUP challenge ( see below ).
I think I'm then meant to call associateSoftwareToken() but at that point the session is null and the 'User is not authenticated' exception is thrown in CognitoUser._signInUserSessionCheck. Am I doing something wrong?
The amazon hosted UI is working fine with "required MFA".
When I select "optional MFA" and then run the app then CognitoUserSession is returned correctly. I presume I could then call associateSoftwareToken() and verifySoftwareToken() as I'll have a valid session, and then setUserMfaPreference.