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

Commit eb20889

Browse files
committed
Include optional orig_iat in jwt_payload_handler
1 parent a3b4d44 commit eb20889

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

rest_framework_jwt/serializers.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,6 @@ def validate(self, attrs):
5858

5959
payload = jwt_payload_handler(user)
6060

61-
# Include original issued at time for a brand new token,
62-
# to allow token refresh
63-
if api_settings.JWT_ALLOW_REFRESH:
64-
payload['orig_iat'] = timegm(
65-
datetime.utcnow().utctimetuple()
66-
)
67-
6861
return {
6962
'token': jwt_encode_handler(payload),
7063
'user': user

0 commit comments

Comments
 (0)