1 | import { InjectionToken } from '@angular/core';
|
2 | const socialLinks = [];
|
3 | export 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,
|
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 | };
|
65 | export const NB_AUTH_OPTIONS = new InjectionToken('Nebular Auth Options');
|
66 | export const NB_AUTH_USER_OPTIONS = new InjectionToken('Nebular User Auth Options');
|
67 | export const NB_AUTH_STRATEGIES = new InjectionToken('Nebular Auth Strategies');
|
68 | export const NB_AUTH_TOKENS = new InjectionToken('Nebular Auth Tokens');
|
69 | export const NB_AUTH_INTERCEPTOR_HEADER = new InjectionToken('Nebular Simple Interceptor Header');
|
70 | export const NB_AUTH_TOKEN_INTERCEPTOR_FILTER = new InjectionToken('Nebular Interceptor Filter');
|
71 |
|
\ | No newline at end of file |