如何从aws cognito的sendMFACode
函数中调用authenticateUser
函数
当我执行cognitoUser.sendMFACode
时。我收到以下错误
{ code: 'InvalidParameterException',
name: 'InvalidParameterException',
message: 'Missing required parameter Session' }
执行的代码是
cognitoUser.sendMFACode('123456', {
onSuccess: function (result) {
console.log(result);
},
onFailure: function (err) {
console.log(err);
}
})
cognitoUser.getSession()
仅适用于经过身份验证的用户
Error: Local storage is missing an ID Token, Please authenticate