angular-oauth2-oidc
Version:
Support for OAuth 2 and OpenId Connect (OIDC) in Angular.
14 lines (13 loc) • 709 B
TypeScript
import { OAuthStorage } from '../types';
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Observable } from 'rxjs';
import { OAuthResourceServerErrorHandler } from './resource-server-error-handler';
import { OAuthModuleConfig } from '../oauth-module.config';
export declare class DefaultOAuthInterceptor implements HttpInterceptor {
private authStorage;
private errorHandler;
private moduleConfig;
constructor(authStorage: OAuthStorage, errorHandler: OAuthResourceServerErrorHandler, moduleConfig: OAuthModuleConfig);
private checkUrl;
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
}