def METHOD_NAME(self, msg: List[bytes]) -> bool:
    command = msg[0]
    self.log.debug("auth received API command %r", command)
    if command == b'TERMINATE':
        return True
    else:
        self.log.error("Invalid auth command from API: %r", command)
        self.pipe.send(b'ERROR')
    return False