Skip to content

Commit

Permalink
fix: docs for amazon-cognito-identity-js (aws-amplify#9909)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
  • Loading branch information
lcsfort and ashika01 authored May 16, 2022
1 parent 798a8f0 commit 08e01b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amazon-cognito-identity-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ cognitoUser.forgotPassword({
//Optional automatic callback
inputVerificationCode: function(data) {
console.log('Code sent to: ' + data);
var code = document.getElementById('code').value;
var verificationCode = document.getElementById('code').value;
var newPassword = document.getElementById('new_password').value;
cognitoUser.confirmPassword(verificationCode, newPassword, {
onSuccess() {
Expand Down

0 comments on commit 08e01b1

Please sign in to comment.