Ankit Dubey
03/01/2022, 6:07 AMUpdate : I was not aware of ktor-client-auth, let me check if it'll help me.
Thanksgildor
03/01/2022, 6:47 AMAnkit Dubey
03/01/2022, 6:51 AMoverride fun authenticate(route: Route?, response: Response): Request? {
//refresh Token by calling login api again
// return request with new updated Token
}
But from this authenticate method, I'm not able to call my suspend login method.
As I've to return the request also once I got the response from Login API, So I was wanting to run those calls sequentially.gildor
03/01/2022, 7:20 AMAnkit Dubey
03/01/2022, 7:22 AMAnkit Dubey
03/01/2022, 7:23 AMgildor
03/01/2022, 7:23 AMgildor
03/01/2022, 7:23 AM