UNPKG

@glamtime/oauth-oidc-client

Version:

Secure your Angular app using the latest standards for OpenID Connect & OAuth2. Provides support for token refresh, all modern OIDC Identity Providers and more.

12 lines (11 loc) 590 B
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Observable } from 'rxjs'; import { OAuthService } from '../oauth.service'; import * as i0 from "@angular/core"; export declare class OAuthInterceptor implements HttpInterceptor { private _oauthService; constructor(_oauthService: OAuthService); intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>; static ɵfac: i0.ɵɵFactoryDeclaration<OAuthInterceptor, never>; static ɵprov: i0.ɵɵInjectableDeclaration<OAuthInterceptor>; }