Closed charith26 closed 4 years ago
Hey,
To be clear, the setAllowedTimePeriodDiscrepancy
method is asking for a discrepancy in periods (or buckets), so if your time period is 60 like the above, setting a discrepancy of 5, is saying that codes that were generated 5*60 seconds ago or less are valid.
Does this help?
Hey, It does! Solved the issue. Thanks
Hi,
I'm using this library to generate and validate totp values. I generate a new code every 60 seconds,
However, when I validate the codes, the old codes continue to be valid even after the new codes are generated. Is this the normal case or am I doing something wrong?
thank you