Changed basic auth to private implementation, in hope of solving reauth issue