You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature
TOTP by nature allows you to use the code any no. of times since it is valid for 30 seconds. However, this will lead to risks and should be not usable once successfully verified.
Solution
Store code in hashed format in db post successful verification, store the 'n' times field in system and validate the if it is among them. Appropriate message should also be shown if it is among them to try after 'X' seconds.
Feature
TOTP by nature allows you to use the code any no. of times since it is valid for 30 seconds. However, this will lead to risks and should be not usable once successfully verified.
Solution
Store code in hashed format in db post successful verification, store the 'n' times field in system and validate the if it is among them. Appropriate message should also be shown if it is among them to try after 'X' seconds.