Improve the basic_auth method.