Skip to content

Commit 3e36046

Browse files
committed
Added forgot password success data.
1 parent 6b6f01d commit 3e36046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CognitoUser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ export default class CognitoUser {
10371037
* @param {onFailure} callback.onFailure Called on any error.
10381038
* @param {inputVerificationCode?} callback.inputVerificationCode
10391039
* Optional callback raised instead of onSuccess with response data.
1040-
* @param {onSuccess<void>?} callback.onSuccess Called on success.
1040+
* @param {onSuccess} callback.onSuccess Called on success.
10411041
* @returns {void}
10421042
*/
10431043
forgotPassword(callback) {
@@ -1051,7 +1051,7 @@ export default class CognitoUser {
10511051
if (typeof callback.inputVerificationCode === 'function') {
10521052
return callback.inputVerificationCode(data);
10531053
}
1054-
return callback.onSuccess();
1054+
return callback.onSuccess(data);
10551055
});
10561056
}
10571057

0 commit comments

Comments
 (0)