-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
bugConfirmed bugConfirmed bugdocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Description
🐛 Bug Report
The current documentation is incorrect on how hooks works, as we state:
preValidation(request, reply, done): a function called after the sharedpreValidationhooks, useful if you need to perform authentication at route level for example, it could also be an array of functions.
We need to document that async preValidation(request, reply) is also correct, but async preValidation(request, reply, done) is not.
Metadata
Metadata
Assignees
Labels
bugConfirmed bugConfirmed bugdocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers