bitcitawebfront-library
Version:
Angular CLI project used by other Angular projects in the bitcita web project.<br />
14 lines (13 loc) • 643 B
TypeScript
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpErrorResponse } from "@angular/common/http";
import { Router } from "@angular/router";
import { Observable } from "rxjs";
import { Error } from "../../shared/data/error";
export declare class TokenInterceptor implements HttpInterceptor {
router: Router;
static TOKEN: string;
constructor(router: Router);
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
buildError(error: HttpErrorResponse, textCA: string, textES: string): Error;
static setToken(token: string): void;
static removetoken(): void;
}