UNPKG

@nebular/auth

Version:
12 lines (11 loc) 542 B
import { Injector } from '@angular/core'; import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Observable } from 'rxjs'; import { NbAuthService } from '../auth.service'; export declare class NbAuthSimpleInterceptor implements HttpInterceptor { private injector; protected headerName: string; constructor(injector: Injector, headerName?: string); intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; protected get authService(): NbAuthService; }