How to limit user from making too many request on an API endpoint? [duplicate]

I have a form where the user can add his phone number then, he receives a verification code on his phone number to log in/register.
Now a user could make too many requests with generated valid numbers to cost me more money (the cost of sen… Continue reading How to limit user from making too many request on an API endpoint? [duplicate]

How to ONLY allow TOTP codes for Google two-factor authentication without signing account out of mobile devices [closed]

I want TOTP (in layman’s terms: Google Authenticator codes; I use KeePassXC to access the keys) to be my primary way to verify my logins into my Google account. The problem is that I can only remove the Google prompt sent to my devices if … Continue reading How to ONLY allow TOTP codes for Google two-factor authentication without signing account out of mobile devices [closed]

Should OTP failed attempts be reset if user clicks on a resend?

I just wanted to understand the best practice which should be followed for OTP. Should OTP failed attempts be reset again if there is a new otp generated by end user by clicking on a resend button. If we reset the count again for each new … Continue reading Should OTP failed attempts be reset if user clicks on a resend?