load authConfig only when needed and fix useless WARNING

Fixes #1528