Closed hryamzik closed 7 years ago
Do you mean the exact second that the timecode will expire? With default settings, you can get it like this: expires = 30 - (time.time() % 30)
.
(That's the number of seconds in the future that it will expire, add it to time.time() to get the expiration timestamp)
Great, thanks for explanation!
How can I get expiration date for TOTP?
totp.now()
without this information is a bit wired...