Do we have any api to lock user after n invalid attempts of passcode in verify factor?

Hi

Do we have any api to lock the user after 3/5 invalid OTP/passcode attempts ?

Per this Help Center article, When does the MFA Lockout Counter reset?, the number of invalid MFA attempts that will result in a lockout is hard-coded at 5