UNPKG

2.2 kBJavaScriptView Raw
1import { InjectionToken } from '@angular/core';
2const socialLinks = [];
3export const defaultAuthOptions = {
4 strategies: [],
5 forms: {
6 login: {
7 redirectDelay: 500,
8 strategy: 'email',
9 rememberMe: true,
10 showMessages: {
11 success: true,
12 error: true,
13 },
14 socialLinks: socialLinks, // social links at the bottom of a page
15 },
16 register: {
17 redirectDelay: 500,
18 strategy: 'email',
19 showMessages: {
20 success: true,
21 error: true,
22 },
23 terms: true,
24 socialLinks: socialLinks,
25 },
26 requestPassword: {
27 redirectDelay: 500,
28 strategy: 'email',
29 showMessages: {
30 success: true,
31 error: true,
32 },
33 socialLinks: socialLinks,
34 },
35 resetPassword: {
36 redirectDelay: 500,
37 strategy: 'email',
38 showMessages: {
39 success: true,
40 error: true,
41 },
42 socialLinks: socialLinks,
43 },
44 logout: {
45 redirectDelay: 500,
46 strategy: 'email',
47 },
48 validation: {
49 password: {
50 required: true,
51 minLength: 4,
52 maxLength: 50,
53 },
54 email: {
55 required: true,
56 },
57 fullName: {
58 required: false,
59 minLength: 4,
60 maxLength: 50,
61 },
62 },
63 },
64};
65export const NB_AUTH_OPTIONS = new InjectionToken('Nebular Auth Options');
66export const NB_AUTH_USER_OPTIONS = new InjectionToken('Nebular User Auth Options');
67export const NB_AUTH_STRATEGIES = new InjectionToken('Nebular Auth Strategies');
68export const NB_AUTH_TOKENS = new InjectionToken('Nebular Auth Tokens');
69export const NB_AUTH_INTERCEPTOR_HEADER = new InjectionToken('Nebular Simple Interceptor Header');
70export const NB_AUTH_TOKEN_INTERCEPTOR_FILTER = new InjectionToken('Nebular Interceptor Filter');
71//# sourceMappingURL=auth.options.js.map
\No newline at end of file