Skip to content

Added Resync helper for counter based hotp

Choose a tag to compare

@ChristianRiesen ChristianRiesen released this 09 Jun 18:36
· 35 commits to master since this release

The counter based otp now has a resync function that allows you to specify a "counterwindow", similar to what the drift does on timer based ones, except only forward. So if your otp is out of sync, you can match one with this function, which then returns the counter it matched on for you to save the new value (or returns false if it doesn't match).

Thanks to @therealssj for the pull request!