Browse Source

remove unused service from handler

pull/19702/head
Sinan997 2 years ago
parent
commit
a9af1f9d29
  1. 2
      npm/ng-packs/packages/theme-shared/src/lib/services/authentication-error-handler.service.ts

2
npm/ng-packs/packages/theme-shared/src/lib/services/authentication-error-handler.service.ts

@ -3,13 +3,11 @@ import { AuthService, ConfigStateService } from '@abp/ng.core';
import { HttpErrorResponse } from '@angular/common/http';
import { CustomHttpErrorHandlerService } from '../models/common';
import { CUSTOM_HTTP_ERROR_HANDLER_PRIORITY } from '../constants/default-errors';
import { Router } from '@angular/router';
@Injectable({ providedIn: 'root' })
export class AbpAuthenticationErrorHandler implements CustomHttpErrorHandlerService {
readonly priority = CUSTOM_HTTP_ERROR_HANDLER_PRIORITY.veryHigh;
protected readonly authService = inject(AuthService);
protected readonly router = inject(Router);
protected readonly configStateService = inject(ConfigStateService);
canHandle(error: unknown): boolean {

Loading…
Cancel
Save