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

Riccardo Montagnin

11/26/2018, 2:19 PM
Hello, how can I add an interceptor so that each authenticated request returns the user a new token inside a custom header?
m

mp

11/26/2018, 3:00 PM
Same way you add other interceptors? See https://ktor.io/advanced/pipeline.html, etc
Note that that will be pretty annoying for clients to consume if they make requests in parallel
7 Views