Add cookies options to the createClient

squash commit for PR #52