Skip to content

Commit

Permalink
Update totp.py (#156)
Browse files Browse the repository at this point in the history
fixed the docstring so params are in the same order as in the parameter
list
  • Loading branch information
gabrielsroka committed Oct 19, 2023
1 parent 66e95a0 commit e927322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyotp/totp.py
Expand Up @@ -24,11 +24,11 @@ def __init__(
) -> None:
"""
:param s: secret in base32 format
:param interval: the time interval in seconds for OTP. This defaults to 30.
:param digits: number of integers in the OTP. Some apps expect this to be 6 digits, others support more.
:param digest: digest function to use in the HMAC (expected to be SHA1)
:param name: account name
:param issuer: issuer
:param interval: the time interval in seconds for OTP. This defaults to 30.
"""
if digest is None:
digest = hashlib.sha1
Expand Down

0 comments on commit e927322

Please sign in to comment.