feat: явно указаны зависимости к Protocol для перехода к имплементации

This commit is contained in:
Artem Tsyrulnikov
2025-12-23 10:11:31 +03:00
parent 23eb5ae13d
commit 45a5b59cc8
11 changed files with 32 additions and 36 deletions

12
shared/jwt_base.py Normal file
View File

@@ -0,0 +1,12 @@
from pydantic import BaseModel
class JWTConfig(BaseModel):
SECRET_KEY: str
ALGORITHM: str = 'HS256'
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60 * 24 * 7 # 7 days
class JWTBase:
def __init__(self, config: JWTConfig) -> None:
self.config = config