Angular 6 HTTP Interceptor Refresh token 401 handling
问题 I have built my AuthInterceptor which on a 401 error sends a request to get a new token. The handle401Error method is called when I encounter a 401 error, But I don't seem to be getting any response in my this.authService.refreshToken().pipe() AuthInterceptor import { Injectable, Injector } from '@angular/core'; import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpErrorResponse } from '@angular/common/http'; import { Observable, throwError } from 'rxjs'; import { catchError, tap