Refactor JWT utilities and download token logic
Merged JWT utility functions into utils/JWT/__init__.py and removed utils/JWT/JWT.py. Refactored download token creation and verification to use new functions, replacing DownloadTokenManager with create_download_token and verify_download_token. Updated imports across the codebase to reflect the new JWT utility structure. Improved download file logic to use physical file storage path and added a dedicated response model for download tokens.
This commit is contained in:
2
main.py
2
main.py
@@ -7,7 +7,7 @@ from utils.http.http_exceptions import raise_internal_error
|
||||
from utils.lifespan import lifespan
|
||||
from models.database import init_db
|
||||
from models.migration import migration
|
||||
from utils.JWT import JWT
|
||||
from utils import JWT
|
||||
from routers import router
|
||||
from loguru import logger as l
|
||||
|
||||
|
||||
Reference in New Issue
Block a user