Closed howlettt closed 6 months ago
The current anonymous hook in the documentation doesn't work with around hooks since it doesn't have the next param https://feathersjs.com/cookbook/authentication/anonymous.html
next
return async (context: HookContext) => {
This PR adds a optional next param so it can be used in both before & around hooks, making it consistent with the authenticate hook https://feathersjs.com/api/authentication/hook
It can be used as a before or around hook.
Thank you!
The current anonymous hook in the documentation doesn't work with around hooks since it doesn't have the
next
param https://feathersjs.com/cookbook/authentication/anonymous.htmlThis PR adds a optional
next
param so it can be used in both before & around hooks, making it consistent with the authenticate hook https://feathersjs.com/api/authentication/hook