load authConfig only when needed and fix useless WARNING