Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. - on each authHttp call, check if token is expired
  2. - if it IS expired, then it tries to refresh the token
  3. - if it successfully refreshed then proceed with initial request
  4. - if it is not successfully refreshed i throw an observable error (so whoever uses authHttp can figure out what to do)
  5. - if it is NOT expired, just proceed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement