mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 03:04:27 +08:00
Add more docstrings
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user