import * as authentication from '@feathersjs/authentication' import addAssociations from '../../hooks/add-associations' const { authenticate } = authentication.hooks export default { before: { all: [authenticate('jwt')], find: [], get: [ addAssociations({ models: [ { model: 'identity-provider' } ] }) ], create: [], update: [], patch: [], remove: [] }, after: { all: [], find: [], get: [], create: [], update: [], patch: [], remove: [] }, error: { all: [], find: [], get: [], create: [], update: [], patch: [], remove: [] } }