Open wallacethefmh opened 2 years ago
Hello there wallacethefmh 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
I'd be open to injecting this on demand
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
I would be interested in something similar to this for koa responses.
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
hapiAuthentication callback should also receive the
hapi.ResponseToolkit
(akah
) object.Current Behavior
hapiAuthentication only gets the
Request
objectPossible Solution
Steps to Reproduce
N/A
Context (Environment)
N/A
Detailed Description
The hapiAuthentication callback should also receive the
hapi.ResponseToolkit
(akah
). It currently only has access to thehapi.Request
object.h
is useful for example when trying to avoid the terrible Boom library, with the ability to useResponse.takeover()
. There are probably other use cases as wellBreaking change?
Yes if implemented as I described above.