Par*_*thy 5 python one-time-password python-3.x
I'm using Pyotp for generating OTP. Default expiry of this token is 30sec. How can I change the default expiry to some 60 seconds? This is the simple code I'm using.
secret = pyotp.random_base32()
totp = pyotp.TOTP(secret)
otp = totp.now()
Run Code Online (Sandbox Code Playgroud)