I've made angular jwt interceptor which implements HttpInterceptor that appends auth header with proper jwt bearer token data. There is additional logic for refreshing token.
It works OK, but now i have 3rd party library which has it's own internal logic and needs to make proper API calls to server. For example some http get request.
How can i use that same jwt interceptor logic within 3rd party library?