Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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"])
]
})