guyht / notp

Node One Time Password library, supports HOTP, TOTP and works with Google Authenticator
https://github.com/guyht/notp
MIT License
685 stars 64 forks source link

Hotp verify #40

Open batrudinych opened 7 years ago

batrudinych commented 7 years ago

As the Readme says, The allowable margin for the counter. The function will check window codes in the future against the provided token. i.e. if window = 100 and counter = 5 all tokens between 5 and 105 will be checked against the supplied token Default - 50 for HOTP code verification. As I can see, the library now implies another logic (issue #21 says the same). I have made a PR#39. Please, take a look if you'll have a chance.

guyht commented 7 years ago

I think it would be better to update the readme than change the functionality of the library