@devlearning/jwt-auth
Version:
Jwt Angular Authentication manager with automatic Refresh Token management.
17 lines (16 loc) • 864 B
TypeScript
import { Observable } from 'rxjs';
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
import { JwtAuthService } from './jwt-auth.service';
import { JwtAuthConfig } from './models/jwt-auth-config';
import { JwtTokenBase } from './models/jwt-token-base';
import * as i0 from "@angular/core";
export declare class JwtAuthInterceptor<Token extends JwtTokenBase> implements HttpInterceptor {
private readonly _config;
private readonly _jwtAuth;
constructor(_config: JwtAuthConfig, _jwtAuth: JwtAuthService<Token>);
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
private applyCredentials;
private handle401Error;
static ɵfac: i0.ɵɵFactoryDeclaration<JwtAuthInterceptor<any>, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<JwtAuthInterceptor<any>>;
}