Skip to content

Commit

Permalink
fix(amazon-cognito-identity-js): fix parameters in sendMFASelectionAn…
Browse files Browse the repository at this point in the history
…swer (#6418)
  • Loading branch information
donaldpipowitch authored and iartemiev committed Oct 13, 2020
1 parent cccc3ea commit d27c4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/amazon-cognito-identity-js/src/CognitoUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1979,14 +1979,14 @@ export default class CognitoUser {
this.Session = data.Session;
if (answerChallenge === 'SMS_MFA') {
return callback.mfaRequired(
data.challengeName,
data.challengeParameters
data.ChallengeName,
data.ChallengeParameters
);
}
if (answerChallenge === 'SOFTWARE_TOKEN_MFA') {
return callback.totpRequired(
data.challengeName,
data.challengeParameters
data.ChallengeName,
data.ChallengeParameters
);
}
return undefined;
Expand Down

0 comments on commit d27c4ed

Please sign in to comment.