aiteamutils 0.2.16__tar.gz → 0.2.17__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.16
3
+ Version: 0.2.17
4
4
  Summary: AI Team Utilities
5
5
  Project-URL: Homepage, https://github.com/yourusername/aiteamutils
6
6
  Project-URL: Issues, https://github.com/yourusername/aiteamutils/issues
@@ -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 settings
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,
@@ -0,0 +1,2 @@
1
+ """버전 정보"""
2
+ __version__ = "0.2.17"
@@ -1,2 +0,0 @@
1
- """버전 정보"""
2
- __version__ = "0.2.16"
File without changes
File without changes
File without changes