UNPKG

922 BTypeScriptView Raw
1import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2import { Observable } from 'rxjs';
3import { OAuthResourceServerErrorHandler } from './resource-server-error-handler';
4import { OAuthModuleConfig } from '../oauth-module.config';
5import { OAuthService } from '../oauth-service';
6import * as i0 from "@angular/core";
7export declare class DefaultOAuthInterceptor implements HttpInterceptor {
8 private oAuthService;
9 private errorHandler;
10 private moduleConfig;
11 constructor(oAuthService: OAuthService, errorHandler: OAuthResourceServerErrorHandler, moduleConfig: OAuthModuleConfig);
12 private checkUrl;
13 intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
14 static ɵfac: i0.ɵɵFactoryDeclaration<DefaultOAuthInterceptor, [null, null, { optional: true; }]>;
15 static ɵprov: i0.ɵɵInjectableDeclaration<DefaultOAuthInterceptor>;
16}