Join Slack
Powered by
Is there something similar to OkHttp's <https://sq...
# multiplatform
v
vanniktech
11/21/2019, 11:52 PM
Is there something similar to OkHttp's
https://square.github.io/okhttp/4.x/okhttp/okhttp3/-authenticator/
for ktor? Basically, a mechanism to manually refresh a token and re-fire the same request
m
mbonnin
11/22/2019, 12:36 AM
I used a
feature
for this:
https://github.com/HearthSim/Arcane-Tracker/blob/master/kotlin-hsreplay-api/src/commonMain/kotlin/net/hearthsim/hsreplay/OauthFeature.kt
v
vanniktech
11/22/2019, 8:27 AM
Oh that looks sick and exactly what I'm looking for. Thanks!
m
mbonnin
11/22/2019, 1:36 PM
I'm pretty new to ktor so don't take it as gospel but it does the job so far 🙂
mbonnin
11/22/2019, 1:38 PM
I wish okhttp were multiplatform 😁
👀 1
Open in Slack
Previous
Next