1 | import { InjectionToken } from '@angular/core';
|
2 | const socialLinks = [];
|
3 | export const defaultAuthOptions = {
|
4 | strategies: [],
|
5 | forms: {
|
6 | login: {
|
7 | redirectDelay: 500, // delay before redirect after a successful login, while success message is shown to the user
|
8 | strategy: 'email', // provider id key. If you have multiple strategies, or what to use your own
|
9 | rememberMe: true, // whether to show or not the `rememberMe` checkbox
|
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 | };
|
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 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0aC5vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ZyYW1ld29yay9hdXRoL2F1dGgub3B0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBdUIvQyxNQUFNLFdBQVcsR0FBdUIsRUFBRSxDQUFDO0FBRTNDLE1BQU0sQ0FBQyxNQUFNLGtCQUFrQixHQUFRO0lBQ3JDLFVBQVUsRUFBRSxFQUFFO0lBQ2QsS0FBSyxFQUFFO1FBQ0wsS0FBSyxFQUFFO1lBQ0wsYUFBYSxFQUFFLEdBQUcsRUFBRSw2RkFBNkY7WUFDakgsUUFBUSxFQUFFLE9BQU8sRUFBRyw0RUFBNEU7WUFDaEcsVUFBVSxFQUFFLElBQUksRUFBSSxtREFBbUQ7WUFDdkUsWUFBWSxFQUFFO2dCQUNaLE9BQU8sRUFBRSxJQUFJO2dCQUNiLEtBQUssRUFBRSxJQUFJO2FBQ1o7WUFDRCxXQUFXLEVBQUUsV0FBVyxFQUFFLHVDQUF1QztTQUNsRTtRQUNELFFBQVEsRUFBRTtZQUNSLGFBQWEsRUFBRSxHQUFHO1lBQ2xCLFFBQVEsRUFBRSxPQUFPO1lBQ2pCLFlBQVksRUFBRTtnQkFDWixPQUFPLEVBQUUsSUFBSTtnQkFDYixLQUFLLEVBQUUsSUFBSTthQUNaO1lBQ0QsS0FBSyxFQUFFLElBQUk7WUFDWCxXQUFXLEVBQUUsV0FBVztTQUN6QjtRQUNELGVBQWUsRUFBRTtZQUNmLGFBQWEsRUFBRSxHQUFHO1lBQ2xCLFFBQVEsRUFBRSx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