These are chat archives for ReactiveX/RxJava

19th
Aug 2017
Rajan Maurya
@therajanmaurya
Aug 19 2017 15:02
Hi, I am doing my GSoC project https://github.com/therajanmaurya/android-client-2.0 in which I am using RxJava 2 and handling rest API calls. Initially user logged in and get a access token, I don’t know when this access token will expire so I want to implement a logic that will call, whenever I will get 401 error, that should fire a request to server to refresh the access token and try the current request again. I don’t want check 401 in every request response. I want to implement this in such a way that i don’t need to check 401 reponse code in every rest api call, if any request code is 401 then it will automically make another request to refresh the access token and try the current request again. Please help. It is last feature that need to implement and the most important thing is, I really want to learn how can I do this using RxJava.
Rajan Maurya
@therajanmaurya
Aug 19 2017 18:39
Can anyone give me example there these type of logic implemented or something please.
David Karnok
@akarnokd
Aug 19 2017 20:21
@therajanmaurya You may have better luck on StackOverflow.