Skip to content

Commit

Permalink
[REST] JWT Token now expire after 6h (instead of 5m)
Browse files Browse the repository at this point in the history
Fix #156
  • Loading branch information
michelesr committed Oct 15, 2015
1 parent 8eb31eb commit 06aef03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gasistafelice/gf/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import consts

from django.utils.translation import ugettext_lazy as _

from datetime import timedelta

ENV = os.getenv('APP_ENV', 'dev')

Expand Down Expand Up @@ -83,6 +83,7 @@
JWT_AUTH = {
'JWT_AUTH_HEADER_PREFIX': 'Bearer',
'JWT_VERIFY_EXPIRATION': False,
'JWT_EXPIRATION_DELTA': timedelta(hours=6)
}

# Local time zone for this installation. Choices can be found here:
Expand Down

0 comments on commit 06aef03

Please sign in to comment.