Fyodor Danilov
11/15/2024, 11:25 AMcredentials
log message gets called only at start. Can I get new auth data every request without interceptor?
install(Auth) {
basic {
sendWithoutRequest { _ ->
true
}
credentials {
val auth = authData()
if (auth.login.isEmpty() || auth.password.isEmpty()) {
null
} else {
Log.d("AuthData", "${auth.login} ${auth.password}")
BasicAuthCredentials(username = auth.login, password = auth.password)
}
}
}
}
Aleksei Tirman [JB]
11/15/2024, 11:51 AMcredentials
method, the Basic auth provider caches the returned result. Unfortunately, unlike the Bearer auth provider, the Basic auth provider doesn't expose a method for clearing the cache. Can you please file an issue with the description of your use case?Fyodor Danilov
11/15/2024, 12:19 PM