Server we connect to uses authentication token (not JWT).
When token expires, we get 401 response.
I’d like to implement the scenario:
1/ any request failed with 401 causes a prompt alert for user password
2/ user enters password
3/ app requests a new token
4/ when token is obtained, app repeats original request with fresh token and continues as if there were no token expired
otherwise app switches to login page
Can you please recommend how to do it nicely with ionic2/ng2?