Pietro Caselani

Results 7 comments of Pietro Caselani

This [commit](https://github.com/pietrocaselani/CouchTracker/commit/e27c4d0e0f9b051cd5d4c575eb5ea3917ed04960) saves all seasons from watched shows into realm. But is not a good idea to get all the seasons everytime the app opens. A better approach would be,...

Maybe this [class](https://github.com/pietrocaselani/CityReviews/blob/master/CityReviewsApp/CoreUI/TableViewPaginator.swift) can help

@SD10 I think this would be a great addition to Moya! I already can see `RefreshTokenPlugin` working with this! And looking at Moya internals, more specific, the method `MoyaProvider.requestNormal`, I...

@pedrovereza I am not sure that we could provide a `RefreshTokenPlugin` implementation direct from Moya. I only mentioned because I implemented a refresh token logic using the RequestClosure API because...

No updates here? I was thinking about open a PR implementing this, but I am not sure if I should wait for Moya 12 release before. What do you think?

@SD10 sorry, what did you try to do using the `RequestClosure`? If you are talking about the refresh token login, you can look my implementation of `RequestClosure` [here](https://github.com/pietrocaselani/Trakt-Swift/blob/master/Trakt/Trakt.swift#L135) and [here...

@SD10 Thanks! And yes, I agree that is unfriendly and definitely should never be a public API, but it solved my problem. My "inspiration" was OkHTTP [interceptors](https://github.com/square/okhttp/wiki/Interceptors) and [authenticator](https://github.com/UweTrottmann/trakt-java/blob/master/src/main/java/com/uwetrottmann/trakt5/TraktV2Authenticator.java).