# ktor

Kurt Renzo Acosta

03/31/2020, 9:45 AM
Hello guys! Is there a counterpart for OkHttp's interceptor in the common code? I'm trying to implement an authentication interceptor for refreshing oauth tokens. I've been using OkHttp but it's only for Android. I created a
block and set up the Authorization header there but I can't seem to find anything to "intercept" it if it needs to be refreshed. Thanks in advance!
I created a custom feature instead. I was trying to make OAuth refreshes automatically handled. Had to read some code to understand it. I made my feature into a library in case someone needs it. Have a look and comment if you run into it!
👍 1