aiteamutils 0.2.16__tar.gz → 0.2.18__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/PKG-INFO +1 -1
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/security.py +3 -1
- aiteamutils-0.2.18/aiteamutils/version.py +2 -0
- aiteamutils-0.2.16/aiteamutils/version.py +0 -2
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/.gitignore +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/README.md +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/__init__.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/base_model.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/base_repository.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/base_service.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/cache.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/config.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/database.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/dependencies.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/enums.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/exceptions.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/aiteamutils/validators.py +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/pyproject.toml +0 -0
- {aiteamutils-0.2.16 → aiteamutils-0.2.18}/setup.py +0 -0
@@ -9,7 +9,7 @@ from passlib.context import CryptContext
|
|
9
9
|
from .exceptions import CustomException, ErrorCode
|
10
10
|
from .database import DatabaseService
|
11
11
|
from .enums import ActivityType
|
12
|
-
from .config import
|
12
|
+
from .config import get_settings
|
13
13
|
|
14
14
|
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
15
15
|
|
@@ -282,6 +282,7 @@ async def create_jwt_token(
|
|
282
282
|
SecurityError: 기타 보안 관련 오류 발생 시
|
283
283
|
"""
|
284
284
|
try:
|
285
|
+
settings = get_settings()
|
285
286
|
# 필수 필드 검증
|
286
287
|
required_fields = {"username", "ulid"}
|
287
288
|
missing_fields = required_fields - user_data.keys()
|
@@ -361,6 +362,7 @@ async def verify_jwt_token(
|
|
361
362
|
) -> Dict[str, Any]:
|
362
363
|
"""JWT 토큰을 검증합니다."""
|
363
364
|
try:
|
365
|
+
settings = get_settings()
|
364
366
|
# 토큰 디코딩
|
365
367
|
payload = jwt.decode(
|
366
368
|
token,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|