kalisio/feathers-distributed

View on GitHub
example/gateway/src/authentication.js

Summary

Maintainability
A
0 mins
Test Coverage
import { AuthenticationService, JWTStrategy } from '@feathersjs/authentication'
import { LocalStrategy } from '@feathersjs/authentication-local'

export default function () {
  const app = this;
  
  const authentication = new AuthenticationService(app)

  authentication.register('jwt', new JWTStrategy())
  authentication.register('local', new LocalStrategy())

  app.use('authentication', authentication)
};