add timeout config param for authentication.