pyauth / pyotp

Python One-Time Password Library
https://pyauth.github.io/pyotp/
Other
3.03k stars 326 forks source link

Increasing the duration of TOTP for Google Authenticator from 30 seconds to custom value such as 10 minutes? #132

Closed Stephen-Bartel closed 2 years ago

Stephen-Bartel commented 2 years ago

Hello,

I'm not sure if it is possible, but I was wondering if the duration of the Google Authenticator code could be increased to 5 or 10 minutes from the default 30 seconds?

kislyuk commented 2 years ago

Yes. The relevant parameter is called interval in the PyOTP API and period in the otpauth URI spec.