pyauth / pyotp

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

Support for 7-digit codes in 'parse_uri'. #111

Closed bernardsmith0892 closed 3 years ago

bernardsmith0892 commented 3 years ago

Super minor change. Since Authy uses 7-digit TOTP codes, URIs with a digits=7 parameter can sometimes be a valid option. This just updates the assertation in parse_uri to allow 7-digit codes, too.