I have a query in an OAuth application and in case the access token has expired I want to automatically request a new token to the endpoint but , How do I do that in the same chain of events?
That is:
The system requests the resource with the access token but it is rejected.
I require that the same system and without the participation of the user request a new token to the endpoint token and with the new request the resource.
This process should be transparent to just one click , does anyone have any idea how to do that in Angular 2 ?