JKHeadley / JKHeadley/rest-hapi
Request object containing only payload in Create (Post) Middleware Not whole request object
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
Hi JKHeadly,
As changes done by you in the "v0.20.0". You add request in the middleware:-
**post(document, request, result, Log)**
But as i printing this request object , i am getting only few things (Payload) here not the whole request object , i want to access the auth in this but unfortunately it not giving the whole request object.
So would appreciate if you please let me know why this is happening or this is right i understand it wrong.
**Note:-I am using 0.23.2 version of rest-hapi**
Thanks
Contributor guide
Research direction
Start by tracing the Create (Post) middleware callback `post(document, request, result, Log)` in rest-hapi v0.23.2 and inspect how its `request` argument is assembled. Compare that value with the full Hapi request and verify how authentication data should be accessed; the issue is done when the behavior is clarified or corrected and covered by the relevant middleware documentation or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, authentication, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 24/100