'Is there a way to generate a HOTP with time limitation?

For example, I want to get a HOTP that can only be used in 10 minutes.

Not TOTP cause it's possible that when users get the code there are only 10 seconds left.



Solution 1:[1]

Thanks @PaulHankin!

We can use the TOTP solution which can generate a one-time password every 1 minute, and when we got user’s input, we can check if there’s a TOTP generated in last 10 minutes matches it!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AkiraVoid