You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm replacing it with pyotp to simplify things. Unfortunately, I do use that second return parameter, which is the time remaining for the code's validity. I use it to show how long the user's code is still valid for, and to decide when to generate a new one.
I understand why at() doesn't return the time remaining but having it in generate_otp() at the very least would make this functionality possible.
Thanks!
The text was updated successfully, but these errors were encountered:
I have the following code in my library:
I'm replacing it with pyotp to simplify things. Unfortunately, I do use that second return parameter, which is the time remaining for the code's validity. I use it to show how long the user's code is still valid for, and to decide when to generate a new one.
I understand why at() doesn't return the time remaining but having it in generate_otp() at the very least would make this functionality possible.
Thanks!
The text was updated successfully, but these errors were encountered: