Atul Gupta
07/13/2024, 3:59 PMBearer token expired
? I tried to do something like below
retryIf { request, response ->
response.status.value == 401 && runBlocking { response.content.readUTF8Line()?.contains("Bearer token expired") == true }
}
content
is marked internalAtul Gupta
07/13/2024, 4:10 PMresponse.body<NetworkModel<*>>().errorMessage == "Bearer token expired"
correct approach here?Alexander Zhirkevich
07/15/2024, 6:55 AMCan I retry the Ktor network callThat it what Auth plugin is made for
Aleksei Tirman [JB]
07/15/2024, 7:34 AMcontent
is accessed with the following one?
response.bodyAsText().contains("Bearer token expired")
Atul Gupta
07/15/2024, 7:36 AMresponse.body<NetworkModel<*>>()
here NetworkModel
is base network model. Thanks for the reply