Skip to content

Commit

Permalink
Clarify that the authenticate hook is required. (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallswain authored and daffl committed Aug 29, 2018
1 parent 752387a commit c872585
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ This module contains:
5. Express middleware
6. A [Passport](http://passportjs.org/) adapter

### Hooks
### Required Hooks

There is just 1 hook now called `authenticate`. This can be used to authenticate a service method with a given strategy.
`feathers-authentication` only includes a single hook, now. Using the bundled `authenticate` hook is required to register an array of one or more strategies on a service method.

```js
app.service('authentication').hooks({
Expand All @@ -51,6 +51,8 @@ app.service('authentication').hooks({
});
```

The hooks that were once bundled with this module are now located at [feathers-legacy-authentication-hooks](https://github.com/feathersjs/feathers-legacy-authentication-hooks)


### Express Middleware

Expand Down

0 comments on commit c872585

Please sign in to comment.