Lengthened token expiry

This commit is contained in:
Fergal Moran
2016-01-29 21:49:54 +00:00
parent 943507e04a
commit 1fd3df5488
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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),