🐛 Bug Report
The current documentation is incorrect on how hooks works, as we state:
preValidation(request, reply, done): a function called after the shared preValidation hooks, 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.
🐛 Bug Report
The current documentation is incorrect on how hooks works, as we state:
We need to document that
async preValidation(request, reply)is also correct, butasync preValidation(request, reply, done)is not.