if api_settings.JWT_ALLOW_REFRESH:
    payload['orig_iat'] = timegm(datetime.utcnow().utctimetuple())
return {'token': jwt_encode_handler(payload)}
How to do Django JSON Web Token Authentication without forcing the user to re-type their password?