cocori-ng
Version:
Cocori-ng is an Angular full of great components & utilites based on Material
15 lines (14 loc) • 756 B
TypeScript
import { HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { HttpService } from '../http.service';
import { TokenService } from '../token.service';
import * as i0 from "@angular/core";
export declare class RequestInterceptorService implements HttpInterceptor {
private tokenService;
private httpService;
constructor(tokenService: TokenService, httpService: HttpService);
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<any>;
addAccessTokenRequest(request: any, token?: any): any;
static ɵfac: i0.ɵɵFactoryDeclaration<RequestInterceptorService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<RequestInterceptorService>;
}