Answer the question
In order to leave comments, you need to log in
How to properly store a token and why do we need a presenter?
I use dagger2 and MOXY(mvp). The dagger has a module in which the retrofit builder is created and http requests are made in it. In the presenter, I catch callbacks. And one of the callbacks receives the accesstoken. I can’t write an interceptor, because I have several services for sending http requests with different base urls. What to do in my case? Where to store the token?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question