UNPKG

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