In-house 2FA
Since PyOTP 2.12.0 broke backwards compatibility, we're going to replace it with in-house 2FA algorithm to handle time-based 2-factor authentication. The algorithm will work exactly as it did before so that backwards-compatibility is retained for existing scripts.
- Replace PyOTP with an in-house 2FA handler
--> This resolves #4561 - Remove references to PyOTP
- Refresh Python dependencies (remove PyOTP)
Gemini-generated snippet:
Replace pyotp with standard library TOTP in get_mfa_code()
Maintains backwards compatibility with 16-character Base32 secrets
after pyotp 2.12.0 enforced a 112-bit minimum key length.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@://github.com>
Acknowledgments
- Standard-library RFC 6238 TOTP implementation drafted with assistance from Google Gemini.
What's Changed
Full Changelog: v4.58.0...v4.58.1