How to use the feathers-authentication-management 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 phoomparin / FlipED / src / services / authentication.js View on Github external
export default function authentication() {
  this.configure(auth({
    secret: AUTH_TOKEN,
    service: USER
  }))

  this.configure(authManagement({
    notifier: (type, user, options) => {
      this.logger.log("info", "User Management Notification:", type)
      console.log("info", "USER", user)
      console.log("info", "OPTIONS", options)
    }
  }))

  this.configure(local())
  this.configure(jwt())

  this.service("authentication").before({
    create: [
      auth.hooks.authenticate(["jwt", "local"])
    ]
  })

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