Files
tgex-backend/shared/jwt_base.py
T
root a33fa24e99
Build & Push / build (push) Canceled after 0s
Initial commit
2026-08-05 19:31:35 +03:00

13 lines
268 B
Python

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