finishPasswordReset method
Completes a password reset request by setting a new password.
The verificationCode returned from verifyPasswordResetCode is used to
validate the password reset request.
Throws an EmailAccountPasswordResetException in case of errors, with reason:
EmailAccountPasswordResetExceptionReason.expiredif the password reset request has already expired.EmailAccountPasswordResetExceptionReason.policyViolationif the new password does not comply with the password policy.EmailAccountPasswordResetExceptionReason.invalidif no request exists for the givenpasswordResetRequestIdorverificationCodeis invalid.
Throws an AuthUserBlockedException if the auth user is blocked.
Implementation
@override
_i2.Future<void> finishPasswordReset({
required String finishPasswordResetToken,
required String newPassword,
}) => caller.callServerEndpoint<void>('emailIdp', 'finishPasswordReset', {
'finishPasswordResetToken': finishPasswordResetToken,
'newPassword': newPassword,
});