File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ export default class CognitoUser {
1037
1037
* @param {onFailure } callback.onFailure Called on any error.
1038
1038
* @param {inputVerificationCode? } callback.inputVerificationCode
1039
1039
* 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.
1041
1041
* @returns {void }
1042
1042
*/
1043
1043
forgotPassword ( callback ) {
@@ -1051,7 +1051,7 @@ export default class CognitoUser {
1051
1051
if ( typeof callback . inputVerificationCode === 'function' ) {
1052
1052
return callback . inputVerificationCode ( data ) ;
1053
1053
}
1054
- return callback . onSuccess ( ) ;
1054
+ return callback . onSuccess ( data ) ;
1055
1055
} ) ;
1056
1056
}
1057
1057
You can’t perform that action at this time.
0 commit comments