1 | import { ModuleWithProviders, Provider } from '@angular/core';
|
2 | import { HttpRequest } from '@angular/common/http';
|
3 | import * as i0 from "@angular/core";
|
4 | export interface JwtConfig {
|
5 | tokenGetter?: (request?: HttpRequest<any>) => string | null | Promise<string | null>;
|
6 | headerName?: string;
|
7 | authScheme?: string | ((request?: HttpRequest<any>) => string);
|
8 | allowedDomains?: Array<string | RegExp>;
|
9 | disallowedRoutes?: Array<string | RegExp>;
|
10 | throwNoTokenError?: boolean;
|
11 | skipWhenExpired?: boolean;
|
12 | }
|
13 | export interface JwtModuleOptions {
|
14 | jwtOptionsProvider?: Provider;
|
15 | config?: JwtConfig;
|
16 | }
|
17 | export declare class JwtModule {
|
18 | constructor(parentModule: JwtModule);
|
19 | static forRoot(options: JwtModuleOptions): ModuleWithProviders<JwtModule>;
|
20 | static ɵfac: i0.ɵɵFactoryDeclaration<JwtModule, [{ optional: true; skipSelf: true; }]>;
|
21 | static ɵmod: i0.ɵɵNgModuleDeclaration<JwtModule, never, never, never>;
|
22 | static ɵinj: i0.ɵɵInjectorDeclaration<JwtModule>;
|
23 | }
|
24 |
|
\ | No newline at end of file |