mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +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>) {
|
||||
}
|
||||
|
||||
|
||||
private is302Response(response: HttpResponseBase): boolean {
|
||||
return response.status === 302;
|
||||
}
|
||||
@@ -139,7 +138,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)),
|
||||
// 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))) {
|
||||
|
Reference in New Issue
Block a user