I have the following interceptor in my application (the headers are generated and the request is cloned in another interceptor).
stackblitz interceptor
and the problem is that when I try to inject content into a dialog that comes from the backend and when making the request the token expires and the refresh is invoked, the content of the dialog is not injected, the dialog remains empty.
I have tried to introduce a return next.handle(clonedRequest) in the next of the getRefreshToken() method after cloning the request before but it does not work. What am I doing wrong?
Thanks and best regards.