UNPKG

878 BTypeScriptView Raw
1import { InjectionToken } from "@angular/core";
2import { Observable } from "rxjs";
3export interface AuthenticationModuleConfig {
4 mode?: string;
5 token?: {
6 time: number;
7 };
8 server?: string;
9 endpoints?: {
10 signOut?: string;
11 signIn?: string;
12 signUp?: string;
13 whoAmI?: string;
14 };
15 forms?: {
16 signIn: string;
17 signUp: string;
18 };
19 env?: {
20 production: boolean;
21 frontend_server: string;
22 server: string;
23 };
24 afterSignoutRedirectTo?: string;
25 signupValidator?: (value: any) => Observable<boolean>;
26 afterSignin?: (user: any) => void;
27 responseToUser?: (user: any) => any;
28}
29export declare const MODULE_DEFAULT_CONFIG: AuthenticationModuleConfig;
30export declare const MODULE_CONFIG_TOKEN: InjectionToken<AuthenticationModuleConfig>;