aiteamutils 0.2.16__py3-none-any.whl → 0.2.18__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
aiteamutils/security.py CHANGED
@@ -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,
aiteamutils/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  """버전 정보"""
2
- __version__ = "0.2.16"
2
+ __version__ = "0.2.18"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.16
3
+ Version: 0.2.18
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
@@ -8,9 +8,9 @@ aiteamutils/database.py,sha256=09ihgJgKlCTouWPnb2dMhWqNH75n7lwB5GauEtr3oiQ,33226
8
8
  aiteamutils/dependencies.py,sha256=S6OWV4d3TONKKW9tRUP9whQlVX5DFfOq7U-7VUyPktA,3928
9
9
  aiteamutils/enums.py,sha256=ipZi6k_QD5-3QV7Yzv7bnL0MjDz-vqfO9I5L77biMKs,632
10
10
  aiteamutils/exceptions.py,sha256=YV-ISya4wQlHk4twvGo16I5r8h22-tXpn9wa-b3WwDM,15231
11
- aiteamutils/security.py,sha256=AZszaTxVEGi1jU1sX3QXHGgshp1lVvd0xXvZejXvs_w,12643
11
+ aiteamutils/security.py,sha256=2k5j8iV4jkp0IGRmOtEbVyoeuoDHbguzaYju0Wm-mmI,12715
12
12
  aiteamutils/validators.py,sha256=3N245cZFjgwtW_KzjESkizx5BBUDaJLbbxfNO4WOFZ0,7764
13
- aiteamutils/version.py,sha256=rRuVYgfIJ8ippmZIeHjX4hU3YDt4kvSClCXfazS1zhw,44
14
- aiteamutils-0.2.16.dist-info/METADATA,sha256=1oaCQf8w5iiMLfZ6Fv5C_PLUkF6hcx2SNhBy5BwApBs,1718
15
- aiteamutils-0.2.16.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
- aiteamutils-0.2.16.dist-info/RECORD,,
13
+ aiteamutils/version.py,sha256=Sg4iiIem99YPfKGAPuPMcjzOHo_0DUVkFzUVuKBGb3E,44
14
+ aiteamutils-0.2.18.dist-info/METADATA,sha256=rYXv8IYNGPEbLVPK_5EGOfpu_YmKQ7_YWgGV7Tnwt1k,1718
15
+ aiteamutils-0.2.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
16
+ aiteamutils-0.2.18.dist-info/RECORD,,