Skip to content

Commit

Permalink
hotfix: jwt 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ybkang1108 committed Aug 14, 2024
1 parent 2b36ae3 commit 647177a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions mustgou/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,16 @@

REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": (
"rest_framework_jwt.authentication.JSONWebTokenAuthentication",
"rest_framework_simplejwt.authentication.JWTAuthentication",
),
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
}


JWT_AUTH = {
"JWT_SECRET_KEY": SECRET_KEY,
"JWT_ALGORITHM": "HS256",
"JWT_ALLOW_REFRESH": True,
"JWT_EXPIRATION_DELTA": datetime.timedelta(days=365),
"JWT_REFRESH_EXPIRATION_DELTA": datetime.timedelta(days=730),
SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": datetime.timedelta(days=30),
"REFRESH_TOKEN_LIFETIME": datetime.timedelta(days=365),
"SIGNING_KEY": config("SECRET_KEY"),
}


Expand Down

0 comments on commit 647177a

Please sign in to comment.