Add authentication to invite script