The connect method checking if the passed argument contains key “username”, if yes – login() method is called, for splunkCloud– there’s no need for a username (only token) so the login is not performed. A service is returned without trying to actually login to the cloud instance.
