Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Include optional orig_iat in jwt_payload_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
jpadilla committed Jul 26, 2015
1 parent a3b4d44 commit eb20889
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions rest_framework_jwt/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ def validate(self, attrs):

payload = jwt_payload_handler(user)

# Include original issued at time for a brand new token,
# to allow token refresh
if api_settings.JWT_ALLOW_REFRESH:
payload['orig_iat'] = timegm(
datetime.utcnow().utctimetuple()
)

return {
'token': jwt_encode_handler(payload),
'user': user
Expand Down

0 comments on commit eb20889

Please sign in to comment.