Abstract auth credentials into a method