Hi there,
Not sure where to put this so here it is.
I’m trying to use HttpInterceptor to add an auth token to every request and handle errors generically. However i ran into some known issues. For example a cyclic dependency. This is fixable by injecting the service which calls HttpClient manually.
This however triggers a overflow error of some sort. This can be fixed by placing the http call in a timeout (without miliseconds) so it performs after the init of the service or something like that. However my http call returns a Observable and whenever i put it in a timeout it no longer returns anything (return type of the function becomes void)
I have no clue to why this happens. If anyone has any ideas it would be appreciated
With best regards,
Robin