Allow a custom express req property set before payload is initialized to be available to hooks/access while using local api #2486
geminigeek
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
i want to be able to access req.foo i set before i initialize payload in hooks/access using local api .
looking at PayloadRequest type, it seems only req.user, if set before initializing payload is retained in local api req object , another key can be exposed, where we can set any key value before we initialize payload which can be accessed in hooks/access control.
Thanks for reading
Beta Was this translation helpful? Give feedback.
All reactions