UNPKG

4.59 kBSource Map (JSON)View Raw
1{"version":3,"file":"auth.options.js","sourceRoot":"","sources":["../../../../.ng_build/auth/auth.options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAuB/C,MAAM,WAAW,GAAuB,EAAE,CAAC;AAE3C,MAAM,CAAC,MAAM,kBAAkB,GAAQ;IACrC,UAAU,EAAE,EAAE;IACd,KAAK,EAAE;QACL,KAAK,EAAE;YACL,aAAa,EAAE,GAAG;YAClB,QAAQ,EAAE,OAAO;YACjB,UAAU,EAAE,IAAI;YAChB,YAAY,EAAE;gBACZ,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,IAAI;aACZ;YACD,WAAW,EAAE,WAAW,EAAE,uCAAuC;SAClE;QACD,QAAQ,EAAE;YACR,aAAa,EAAE,GAAG;YAClB,QAAQ,EAAE,OAAO;YACjB,YAAY,EAAE;gBACZ,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,IAAI;aACZ;YACD,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,WAAW;SACzB;QACD,eAAe,EAAE;YACf,aAAa,EAAE,GAAG;YAClB,QAAQ,EAAE,OAAO;YACjB,YAAY,EAAE;gBACZ,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,IAAI;aACZ;YACD,WAAW,EAAE,WAAW;SACzB;QACD,aAAa,EAAE;YACb,aAAa,EAAE,GAAG;YAClB,QAAQ,EAAE,OAAO;YACjB,YAAY,EAAE;gBACZ,OAAO,EAAE,IAAI;gBACb,KAAK,EAAE,IAAI;aACZ;YACD,WAAW,EAAE,WAAW;SACzB;QACD,MAAM,EAAE;YACN,aAAa,EAAE,GAAG;YAClB,QAAQ,EAAE,OAAO;SAClB;QACD,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI;gBACd,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,EAAE;aACd;YACD,KAAK,EAAE;gBACL,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,QAAQ,EAAE,KAAK;gBACf,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,EAAE;aACd;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,cAAc,CAAgB,sBAAsB,CAAC,CAAC;AACzF,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,cAAc,CAAgB,2BAA2B,CAAC,CAAC;AACnG,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,cAAc,CAAmB,yBAAyB,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,CAAkC,qBAAqB,CAAC,CAAC;AACzG,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,cAAc,CAAS,mCAAmC,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,gCAAgC,GACtC,IAAI,cAAc,CAAqC,4BAA4B,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { HttpRequest } from '@angular/common/http';\nimport { NbAuthStrategy } from './strategies/auth-strategy';\nimport { NbAuthStrategyOptions } from './strategies/auth-strategy-options';\nimport { NbAuthToken, NbAuthTokenClass } from './services/token/token';\n\nexport type NbAuthStrategyClass = new (...params: any[]) => NbAuthStrategy;\n\nexport type NbAuthStrategies = [NbAuthStrategyClass, NbAuthStrategyOptions][];\n\nexport interface NbAuthOptions {\n forms?: any;\n strategies?: NbAuthStrategies;\n}\n\nexport interface NbAuthSocialLink {\n link?: string,\n url?: string,\n target?: string,\n title?: string,\n icon?: string,\n}\n\nconst socialLinks: NbAuthSocialLink[] = [];\n\nexport const defaultAuthOptions: any = {\n strategies: [],\n forms: {\n login: {\n redirectDelay: 500, // delay before redirect after a successful login, while success message is shown to the user\n strategy: 'email', // provider id key. If you have multiple strategies, or what to use your own\n rememberMe: true, // whether to show or not the `rememberMe` checkbox\n showMessages: { // show/not show success/error messages\n success: true,\n error: true,\n },\n socialLinks: socialLinks, // social links at the bottom of a page\n },\n register: {\n redirectDelay: 500,\n strategy: 'email',\n showMessages: {\n success: true,\n error: true,\n },\n terms: true,\n socialLinks: socialLinks,\n },\n requestPassword: {\n redirectDelay: 500,\n strategy: 'email',\n showMessages: {\n success: true,\n error: true,\n },\n socialLinks: socialLinks,\n },\n resetPassword: {\n redirectDelay: 500,\n strategy: 'email',\n showMessages: {\n success: true,\n error: true,\n },\n socialLinks: socialLinks,\n },\n logout: {\n redirectDelay: 500,\n strategy: 'email',\n },\n validation: {\n password: {\n required: true,\n minLength: 4,\n maxLength: 50,\n },\n email: {\n required: true,\n },\n fullName: {\n required: false,\n minLength: 4,\n maxLength: 50,\n },\n },\n },\n};\n\nexport const NB_AUTH_OPTIONS = new InjectionToken<NbAuthOptions>('Nebular Auth Options');\nexport const NB_AUTH_USER_OPTIONS = new InjectionToken<NbAuthOptions>('Nebular User Auth Options');\nexport const NB_AUTH_STRATEGIES = new InjectionToken<NbAuthStrategies>('Nebular Auth Strategies');\nexport const NB_AUTH_TOKENS = new InjectionToken<NbAuthTokenClass<NbAuthToken>[]>('Nebular Auth Tokens');\nexport const NB_AUTH_INTERCEPTOR_HEADER = new InjectionToken<string>('Nebular Simple Interceptor Header');\nexport const NB_AUTH_TOKEN_INTERCEPTOR_FILTER =\n new InjectionToken<(req: HttpRequest<any>) => boolean>('Nebular Interceptor Filter');\n\n"]}
\No newline at end of file