MongoDB shared cluster connection to Stitch

Never mind, I just managed to make it work by providing the hostname of one of the secondary instances.
Also, was passing the wrong authentication database in the config.