iDK if this helps but i added this code block also it executes right!
HttpResponseValidator {
validateResponse { response ->
when (response.status.value) {
401 -> {
println("SHOULD REFRESHHH")
}
}
}
}
i can use it manually call my renewToken api call function (but there will be a problem since as the old tokens api will not be recalled i guess since they already return 401 status)
a
Aleksei Tirman [JB]
04/05/2024, 4:42 PM
Can you share the response status code and the value of the