mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Removed logs from auth.interceptor
This commit is contained in:
@@ -34,7 +34,6 @@ export class AuthInterceptor implements HttpInterceptor {
|
|||||||
constructor(private inj: Injector, private router: Router, private store: Store<AppState>) {
|
constructor(private inj: Injector, private router: Router, private store: Store<AppState>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private is302Response(response: HttpResponseBase): boolean {
|
private is302Response(response: HttpResponseBase): boolean {
|
||||||
return response.status === 302;
|
return response.status === 302;
|
||||||
}
|
}
|
||||||
@@ -139,7 +138,7 @@ export class AuthInterceptor implements HttpInterceptor {
|
|||||||
|
|
||||||
// Pass on the new request instead of the original request.
|
// Pass on the new request instead of the original request.
|
||||||
return next.handle(newReq).pipe(
|
return next.handle(newReq).pipe(
|
||||||
tap((response) => console.log('next.handle: ', response)),
|
// tap((response) => console.log('next.handle: ', response)),
|
||||||
map((response) => {
|
map((response) => {
|
||||||
// Intercept a Login/Logout response
|
// Intercept a Login/Logout response
|
||||||
if (response instanceof HttpResponse && this.isSuccess(response) && (this.isLoginResponse(response) || this.isLogoutResponse(response))) {
|
if (response instanceof HttpResponse && this.isSuccess(response) && (this.isLoginResponse(response) || this.isLogoutResponse(response))) {
|
||||||
|
Reference in New Issue
Block a user