diff --git a/conduit/apps/authentication/models.py b/conduit/apps/authentication/models.py index 2129957..fd42c69 100644 --- a/conduit/apps/authentication/models.py +++ b/conduit/apps/authentication/models.py @@ -133,7 +133,7 @@ def _generate_jwt_token(self): token = jwt.encode({ 'id': self.pk, - 'exp': int(dt.strftime('%s')) + 'exp': int(dt.timestamp()) }, settings.SECRET_KEY, algorithm='HS256') return token.decode('utf-8')