diff --git a/src/app/core/auth/auth.interceptor.ts b/src/app/core/auth/auth.interceptor.ts index 73ab582762..6ddac4bd36 100644 --- a/src/app/core/auth/auth.interceptor.ts +++ b/src/app/core/auth/auth.interceptor.ts @@ -1,6 +1,6 @@ import {Observable, of as observableOf, throwError as observableThrowError} from 'rxjs'; -import {catchError, filter, map} from 'rxjs/operators'; +import {catchError, filter, map, tap} from 'rxjs/operators'; import {Injectable, Injector} from '@angular/core'; import { HttpErrorResponse, @@ -131,6 +131,7 @@ export class AuthInterceptor implements HttpInterceptor { // Pass on the new request instead of the original request. return next.handle(newReq).pipe( + tap((response) => console.log('next.handle: ', response)), map((response) => { // Intercept a Login/Logout response if (response instanceof HttpResponse && this.isSuccess(response) && (this.isLoginResponse(response) || this.isLogoutResponse(response))) { diff --git a/src/app/shared/log-in/log-in.component.ts b/src/app/shared/log-in/log-in.component.ts index eb5d20cf2a..35b41d414a 100644 --- a/src/app/shared/log-in/log-in.component.ts +++ b/src/app/shared/log-in/log-in.component.ts @@ -20,7 +20,6 @@ import {CoreState} from '../../core/core.reducers'; import {isNotEmpty} from '../empty.util'; import {fadeOut} from '../animations/fade'; import {AuthService} from '../../core/auth/auth.service'; -import {HttpClient} from '@angular/common/http'; /** * /users/sign-in @@ -104,7 +103,7 @@ export class LogInComponent implements OnDestroy, OnInit { private authService: AuthService, private formBuilder: FormBuilder, private store: Store, - private http: HttpClient + ) { }