Skip to content

Commit

Permalink
Increase expiration of token to one day
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Cote committed Dec 19, 2019
1 parent ca142be commit 5f7b223
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mymusix/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import os
import django_heroku
import datetime

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down Expand Up @@ -77,7 +78,8 @@
)

JWT_AUTH = {
'JWT_RESPONSE_PAYLOAD_HANDLER': 'mymusix.utils.my_jwt_response_handler'
'JWT_RESPONSE_PAYLOAD_HANDLER': 'mymusix.utils.my_jwt_response_handler',
'JWT_EXPIRATION_DELTA': datetime.timedelta(days=2)
}

ROOT_URLCONF = 'mymusix.urls'
Expand Down

0 comments on commit 5f7b223

Please sign in to comment.