allow ability to pass in authentication function