-
-
Notifications
You must be signed in to change notification settings - Fork 351
Open
Description
Consider this test:
import pyotp
from time import sleep
key = pyotp.random_base32()
for i in range(1,10):
otp = pyotp.TOTP(key).now()
sleep(5)
print pyotp.TOTP(key).verify(otp)
Sample output is:
True
False
True
True
True
True
True
False
True
I have seen this in production. I don't know why it fails sometimes. Any idea why? And how I can go about fixing it?
Thank you,
Joseph
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels