Skip to content

Instantly share code, notes, and snippets.

@ImreC
Last active February 17, 2018 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ImreC/abb691e720d1e47be405ff2896206f9a to your computer and use it in GitHub Desktop.
Save ImreC/abb691e720d1e47be405ff2896206f9a to your computer and use it in GitHub Desktop.
// Initializes the `authmanagement` service on path `/authmanagement`
const authManagement = require('feathers-authentication-management');
const hooks = require('./authmanagement.hooks');
const notifier = require('./notifier');
module.exports = function (app) {
// Initialize our service with any options it requires
app.configure(authManagement(notifier(app)));
// Get our initialized service so that we can register hooks and filters
const service = app.service('authManagement');
service.hooks(hooks);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment