Angelo Rüggeberg
07/09/2023, 6:42 PMrefreshTokens
method provided ?Angelo Rüggeberg
07/09/2023, 6:53 PMHttpResponseValidator
with handleResponseExceptionWithRequest
but I can only throw another Exception in there and not sure wich i need to throw to let the client react with refreshTokens.Giuliopime
07/09/2023, 11:35 PMAngelo Rüggeberg
07/10/2023, 10:05 AMAuth
plugin :
install(Auth) {
bearer {
loadTokens {
....
}
refreshTokens {
....
}
}
}
Aleksei Tirman [JB]
07/11/2023, 1:11 PMAngelo Rüggeberg
07/11/2023, 2:28 PMbody()
in there unfortunatley and i need to parse the responses content jsonAngelo Rüggeberg
07/11/2023, 4:11 PMio.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.utils.io.ByteBufferChannel (Kotlin reflection is not available)
This is what I get to be perceise. when I do the following:
install("CustomAuthError") {
receivePipeline.intercept(HttpReceivePipeline.Before) { response ->
if (response.status == HttpStatusCode.InternalServerError) {
val error = response.body<ErrorContent>()
Angelo Rüggeberg
07/11/2023, 4:11 PM