How to use the feathers-authentication-management.hooks.removeVerification function in feathers-authentication-management

To help you get started, we’ve selected a few feathers-authentication-management 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 ImreC / feathers-verification-emails / src / services / users / users.hooks.js View on Github external
remove: [ authenticate('jwt') ]
  },

  after: {
    all: [
      // Make sure the password field is never sent to the client
      // Always must be the last hook
      protect('password')
    ],
    find: [],
    get: [],
    create: [
      context => {
        accountService(context.app).notifier('resendVerifySignup', context.result)
      },
      verifyHooks.removeVerification()
    ],
    update: [],
    patch: [],
    remove: []
  },

  error: {
    all: [],
    find: [],
    get: [],
    create: [],
    update: [],
    patch: [],
    remove: []
  }
};
github codingfriend1 / Feathers-Vue / server / services / users / users.hooks.js View on Github external
commonHooks.when(
        hook => hook.params.provider,
        commonHooks.discard('password', '_computed', 'verifyExpires', 'resetExpires', 'verifyChanges')
      ),
    ],
    find: [
      commonHooks.populate({ schema }),
      commonHooks.serialize(serializeSchema),
    ],
    get: [
      commonHooks.populate({ schema }),
      commonHooks.serialize(serializeSchema),
    ],
    create: [
      sendVerificationEmail(),
      verifyHooks.removeVerification()
    ],
    update: [
      commonHooks.populate({ schema }),
      commonHooks.serialize(serializeSchema),
    ],
    patch: [
      commonHooks.populate({ schema }),
      commonHooks.serialize(serializeSchema),
    ],
    remove: [
      commonHooks.populate({ schema }),
      commonHooks.serialize(serializeSchema),
    ]
  },

  error: {
github codingfriend1 / Feathers-Vue / src / services / user / hooks / index.js View on Github external
all: [
    hooks.remove('password')
  ],
  find: [
    common.populate({ schema }),
    common.serialize(serializeSchema),
    hooks.remove([ '_computed'])
  ],
  get: [
    common.populate({ schema }),
    common.serialize(serializeSchema),
    hooks.remove([ '_computed'])
  ],
  create: [
    globalHooks.sendVerificationEmail(),
    verifyHooks.removeVerification(),
  ],
  update: [],
  patch: [],
  remove: []
};

feathers-authentication-management

Adds sign up verification, forgotten password reset, and other capabilities to local feathers-authentication

MIT
Latest version published 6 months ago

Package Health Score

77 / 100
Full package analysis