Can someone point me as how to introduce KMP's net...
# multiplatform
u
Can someone point me as how to introduce KMP's networking into an existing project, *which alread*y uses Alamofire & has Authorization management (401 refreshing, queuing & retrying, keeping the tokens etc; basically is mirrors what ktor does as well, since it as well is a high-er level http client). What's the best way to add a KMP feature A which would include ktor? Since Ktor instance will have it's own separate auth management, I might end up with two separate worlds that are not aware of each other - Having a shared place to save/read tokens is one thing but concurrent 401s might be an issue Alamofire might see a 401, refresh that, but concurrently ktor hits an endpoint and that as well will see a 401, so concurrent refreshes could happen
l
why not have an abstraction over network level and just switch the libraries?
u
I could but it a lot of work