https://kotlinlang.org logo
#ktor
Title
# ktor
p

Pablo

04/17/2021, 12:17 PM
how can I do a network call inside a
HttpClientConfig<OkHttpConfig>
? I need to refresh my credentials on my server if I get a 401
y

yschimke

04/19/2021, 4:01 AM
You may want to do this as part of a OkHttp interceptor. This does something similar https://github.com/yschimke/okurl/blob/master/src/main/kotlin/com/baulsupp/okurl/authenticator/RenewingInterceptor.kt
3 Views