import json


def generateJSONAuthHeader(kolide_token):
  """
  Input: Takes in Kolide JWT token
  Output: Returns JSON payload for authenticating websocket to Kolide
  """
  websocket_auth_payload = {
    "type":"auth",
    "data":
      {
        "token": kolide_token
      }
  }
  return json.dumps(websocket_auth_payload)