The @feathersjs/authentication plugins provide a collection of tools for username/password, JWT and OAuth (GitHub, Facebook etc.) authentication as well as custom authentication mechanisms.
authenticate(...strategies) is a hook that allows to authenticate a service method with one or more registered authentication strategies.
import { authenticate } from '@feathersjs/authentication'
app.service('messages').hooks({
before: {
all: [authenticate('jwt')]
}
})
For detailed documentation on the authentication service, strategies (JWT, Local, OAuth), and client usage, see the Feathers v5 (Dove) authentication documentation.