Closed dphans closed 3 years ago
in this repo viewmodel is calling the interceptor (repo interface) that is the abstraction of the repo logic, we are not calling directly to the repo, about login flow you are correct, make sure to check for the token each time you do a call, if needs to be refreshed you can call refresh token from the api
Can I ask a question about authentication, aka. login flow?
And second question, I heard about recommend that ViewModel will never access to repositories directly, it will call to repositories by usecases (aka. interactors), how about you?