chrisumbel / onceler

A one-time password library for node.js
MIT License
10 stars 1 forks source link

Add tolerance window to TOTP.verify #3

Closed 95ulisse closed 3 years ago

95ulisse commented 9 years ago

This patch adds support for a tolerance window while verifying a TOTP, to take into account time skew between the server and the client. By default, the window is set to 6 intervals, which translates into 3 minutes of time.