Hey. The ktor plugin for basic auth generated me `...
# ktor
s
Hey. The ktor plugin for basic auth generated me
Copy code
val client = HttpClient() {
        install(BasicAuth) {
            username = "test"
            password = "pass"
        }
where
BasicAuth
,
username
,
password
are unknown... The documentation https://ktor.io/clients/http-client/features/auth.html#providers says that it should be:
Copy code
install(Auth) {
        basic {
            username = "username"
            password = "password"
        }
    }
but then also
basic
is not known... I could change
Auth
to
Authentication
but then
username
and
password
don't fit there. Do you have any working example?
👀 1