Add more docstrings

This commit is contained in:
François Voron
2019-10-10 19:03:52 +02:00
parent ef6dd2c39c
commit 9e1fd76f30
4 changed files with 13 additions and 0 deletions

View File

@ -21,6 +21,12 @@ def generate_jwt(data: dict, lifetime_seconds: int, secret: str, algorithm: str)
class JWTAuthentication(BaseAuthentication):
"""
Authentication using a JWT.
:param secret: Secret used to encode the JWT.
:param lifetime_seconds: Lifetime duration of the JWT in seconds.
"""
algorithm: str = "HS256"
secret: str