If createClient cannot be called without credentials, this should probably check for the required properties.