Skip to content

Commit

Permalink
fix: 디폴트 인증 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ybkang1108 committed Aug 12, 2024
1 parent a4c2b31 commit 173a7f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mustgou/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@


REST_FRAMEWORK = {
# "DEFAULT_AUTHENTICATION_CLASSES": [
# "rest_framework_simplejwt.authentication.JWTAuthentication",
# ],
"DEFAULT_AUTHENTICATION_CLASSES": [
"rest_framework_simplejwt.authentication.JWTAuthentication",
],
"DEFAULT_PERMISSION_CLASSES": ("rest_framework.permissions.IsAuthenticated",),
}

Expand All @@ -129,8 +129,8 @@
"JWT_SECRET_KEY": SECRET_KEY,
"JWT_ALGORITHM": "HS256",
"JWT_ALLOW_REFRESH": True,
"JWT_EXPIRATION_DELTA": datetime.timedelta(days=7),
"JWT_REFRESH_EXPIRATION_DELTA": datetime.timedelta(days=28),
"JWT_EXPIRATION_DELTA": datetime.timedelta(days=365),
"JWT_REFRESH_EXPIRATION_DELTA": datetime.timedelta(days=730),
}


Expand Down

0 comments on commit 173a7f0

Please sign in to comment.