Join Slack
Powered by
What would be an idiomatic way to handle refreshin...
# ktor
m
mbonnin
06/16/2019, 3:49 PM
What would be an idiomatic way to handle refreshing oauth tokens on demand using ktor-client ? i.e. the equivalent of this kind of okhttp things:
https://gist.github.com/alex-shpak/da1e65f52dc916716930
b
bdawg.io
06/16/2019, 5:45 PM
Ktor's equivalent of interceptors are pipelines
bdawg.io
06/16/2019, 5:46 PM
https://ktor.io/advanced/pipeline.html
bdawg.io
06/16/2019, 5:48 PM
These are the phases for the client request pipeline
https://github.com/ktorio/ktor/blob/master/ktor-client/ktor-client-core/common/src/io/ktor/client/request/HttpRequestPipeline.kt
m
mbonnin
06/16/2019, 5:50 PM
Thanks
mbonnin
06/16/2019, 5:50 PM
Not sure how I can retry the request but I'll look into this
3
Views
Open in Slack
Previous
Next