Mark Schisler
02/04/2022, 12:44 AMNote that this block will be called after receiving ahttps://ktor.io/docs/auth.html#bearer Unfortunately, I am dealing with an endpoint that returns a(Unauthorized) response with the `WWW-Authenticate`header.401
403
in the reauthorization case. Is the best way to accomplish this via a custom plugin, more or less mirroring the implementation of Auth
?
https://github.com/ktorio/ktor/blob/0081f943b434bdd0afd82424b389629e89a89461/ktor-[…]ktor-client-auth/common/src/io/ktor/client/plugins/auth/Auth.kt