How to use the @nebular/auth.NbPasswordAuthStrategy.setup function in @nebular/auth

To help you get started, we’ve selected a few @nebular/auth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github akveo / nebular / 3.6.2 / assets / examples / auth / auth.module.ts View on Github external
url: 'https://www.facebook.com/akveo',
              target: '_blank',
              title: 'Twitter',
            },
          ],
        },
      },
      strategies: [
        NbDummyAuthStrategy.setup({
          name: 'dummy',

          alwaysFail: true,
          delay: 1000,
        }),

        NbPasswordAuthStrategy.setup({
          name: 'email',
          token: {
            class: NbAuthJWTToken,
          },
          login: {
            requireValidToken: false,
          },
          baseEndpoint: 'http://localhost:4400/api/auth/',
          logout: {
            redirect: {
              success: '/auth/login',
              failure: '/auth/login',
            },
          },
          requestPass: {
            redirect: {
github akveo / nebular / src / playground / without-layout / auth / auth.module.ts View on Github external
url: 'https://www.facebook.com/akveo',
              target: '_blank',
              title: 'Twitter',
            },
          ],
        },
      },
      strategies: [
        NbDummyAuthStrategy.setup({
          name: 'dummy',

          alwaysFail: true,
          delay: 1000,
        }),

        NbPasswordAuthStrategy.setup({
          name: 'email',
          token: {
            class: NbAuthJWTToken,
          },
          login: {
            requireValidToken: false,
          },
          baseEndpoint: 'http://localhost:4400/api/auth/',
          logout: {
            redirect: {
              success: '/auth/login',
              failure: '/auth/login',
            },
          },
          requestPass: {
            redirect: {