UNPKG

@isaiahiroko/ng-interceptors

Version:

Angular interceptors for token authorization, local and remote store synchronization and global notification

9 lines (8 loc) 396 B
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http'; import { AuthService } from '@isaiahiroko/ng-utils'; import { Observable } from 'rxjs'; export declare class AuthInterceptor implements HttpInterceptor { private auth; constructor(auth: AuthService); intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; }