diff --git a/api/auth.py b/api/auth.py index 743d117..eb46791 100644 --- a/api/auth.py +++ b/api/auth.py @@ -13,6 +13,7 @@ from rest_framework.authtoken.serializers import AuthTokenSerializer from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.views import APIView +from rest_framework_jwt.authentication import JSONWebTokenAuthentication from rest_framework_jwt.settings import api_settings from rest_framework_jwt.utils import jwt_payload_handler, jwt_encode_handler diff --git a/dss/settings.py b/dss/settings.py index 2e41ca4..33ba9ab 100755 --- a/dss/settings.py +++ b/dss/settings.py @@ -212,7 +212,7 @@ THUMBNAIL_PREFIX = '_tn/' # THUMBNAIL_STORAGE = 'storages.backends.azure_storage.AzureStorage' JWT_AUTH = { - 'JWT_EXPIRATION_DELTA': timedelta(seconds=900), + 'JWT_EXPIRATION_DELTA': timedelta(seconds=(60 * 60 * 24) * 14), # 'JWT_EXPIRATION_DELTA': timedelta(seconds=5), 'JWT_ALLOW_REFRESH': True, 'JWT_REFRESH_EXPIRATION_DELTA': timedelta(days=30),