Hey everyone, I’m trying to make an `AutoRefreshTo...
# server
t
Hey everyone, I’m trying to make an
AutoRefreshToken
interceptor plugin in my Ktor client (
HttpClient
), which is supposed to see if the response is a token time-out error, and if it is, generate a new token and resend the request. For getting the response, should I intercept the
receivePipeline
or the
responsePipeline
?
r
Use
receivePipeline
.
responsePipeline
is for downloading a body
👌 1
t
Aight, thanks!