fix C&P error in authentication wrapper