Hey,
I have an existing ios app and I want to try to employ KMP.
On ios i have Alamofire for metworking, and in kmp it is naturally Ktor.
Trouble is, both frameworks hold tokens in memory and have thier own refreshing mechanism (on queueing concurrent while refresh is going on, retrying etc)
How should I best deal with this dual source of truth?
Obviously it would be best to have just one, but swapping alamofire for ktor everywhere is not feasible at the beginning, since its 100+ endpoints in total
Ideas?
c
Chrimaeon
09/11/2025, 5:59 AM
Please refrain from cross-posting the same message on multiple channels. It is considered spamming.
Mate, different points
here I'm talking about as how to incrementally adopt, i.e. what shoukd be the source of truth
there im concretely dealing how to sync tokens, since ktors memory caching is harmful for such case
dont be so pedantic