feat: явно указаны зависимости к Protocol для перехода к имплементации
This commit is contained in:
12
shared/jwt_base.py
Normal file
12
shared/jwt_base.py
Normal 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
|
||||
Reference in New Issue
Block a user