UNPKG

@bixi/auth

Version:
16 lines (15 loc) 491 B
import { HttpRequest } from '@angular/common/http'; import { BixiAuthConfig } from '../../config.type'; import { BaseInterceptor } from '../base.interceptor'; /** * Simple 拦截器 * * ``` * // app.module.ts * { provide: HTTP_INTERCEPTORS, useClass: SimpleInterceptor, multi: true} * ``` */ export declare class SimpleInterceptor extends BaseInterceptor { isAuth(_options: BixiAuthConfig): boolean; setReq(req: HttpRequest<any>, options: BixiAuthConfig): HttpRequest<any>; }