Drop Python 3.8 support

This commit is contained in:
François Voron
2024-11-03 12:51:32 +00:00
committed by GitHub
parent 7f92a82e07
commit caa17889e1
41 changed files with 231 additions and 251 deletions

View File

@ -1,5 +1,5 @@
from datetime import datetime, timedelta, timezone
from typing import Any, Dict, List, Optional, Union
from typing import Any, Optional, Union
import jwt
from pydantic import SecretStr
@ -30,9 +30,9 @@ def generate_jwt(
def decode_jwt(
encoded_jwt: str,
secret: SecretType,
audience: List[str],
algorithms: List[str] = [JWT_ALGORITHM],
) -> Dict[str, Any]:
audience: list[str],
algorithms: list[str] = [JWT_ALGORITHM],
) -> dict[str, Any]:
return jwt.decode(
encoded_jwt,
_get_secret_value(secret),