In Auth use cases (Login and Register) the credentials validation happens before the repository (and the datasource) is called. The flows are sometimes not awaited. The bug also happened because l was using map instead of collect. CollectLatest caused multiple flows emitting runtime error.
In Auth use cases (Login and Register) the credentials validation happens before the repository (and the datasource) is called. The flows are sometimes not awaited. The bug also happened because l was using map instead of collect. CollectLatest caused multiple flows emitting runtime error.