UNPKG

ngx-amplify

Version:

An angular library for integration AWS cloud services (cognito, s3)

10 lines (9 loc) 404 B
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AuthService } from './auth.service'; export declare class TokenInterceptor implements HttpInterceptor { private auth; constructor(auth: AuthService); intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; private addToken; }