1 | import { InjectionToken } from '@angular/core';
|
2 | import { HttpRequest } from '@angular/common/http';
|
3 | import { NbAuthStrategy } from './strategies/auth-strategy';
|
4 | import { NbAuthStrategyOptions } from './strategies/auth-strategy-options';
|
5 | import { NbAuthToken, NbAuthTokenClass } from './services/token/token';
|
6 | export type NbAuthStrategyClass = new (...params: any[]) => NbAuthStrategy;
|
7 | export type NbAuthStrategies = [NbAuthStrategyClass, NbAuthStrategyOptions][];
|
8 | export interface NbAuthOptions {
|
9 | forms?: any;
|
10 | strategies?: NbAuthStrategies;
|
11 | }
|
12 | export interface NbAuthSocialLink {
|
13 | link?: string;
|
14 | url?: string;
|
15 | target?: string;
|
16 | title?: string;
|
17 | icon?: string;
|
18 | }
|
19 | export declare const defaultAuthOptions: any;
|
20 | export declare const NB_AUTH_OPTIONS: InjectionToken<NbAuthOptions>;
|
21 | export declare const NB_AUTH_USER_OPTIONS: InjectionToken<NbAuthOptions>;
|
22 | export declare const NB_AUTH_STRATEGIES: InjectionToken<NbAuthStrategies>;
|
23 | export declare const NB_AUTH_TOKENS: InjectionToken<NbAuthTokenClass<NbAuthToken>[]>;
|
24 | export declare const NB_AUTH_INTERCEPTOR_HEADER: InjectionToken<string>;
|
25 | export declare const NB_AUTH_TOKEN_INTERCEPTOR_FILTER: InjectionToken<(req: HttpRequest<any>) => boolean>;
|