Improved auth configuration