Hi all, I'm using bearer auth with access/refresh ...
# ktor
h
Hi all, I'm using bearer auth with access/refresh token for my auth flow in ktor client. My current issue is that when the server responses to a request with expired access token, it doesn't include the www-authenticate header, I found this issue here which said that it has been fixed, but I'm still experiencing this issue. Does anyone have more insight into this? Thanks in advance
a
You can use this workaround to add the appropriate
WWW-Authenticate
response header.
h
thanks @Aleksei Tirman [JB]
@Aleksei Tirman [JB] what does the annotation
@InternalAPI
do? In the workaround the class
CacheableResponse
extend
HttpResponse
, which require a parameter named
rawContent
in the constructor, the parameter is decorated with the
@InternalAPI
annotation.