You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there!
I wrote a preHandlerAsyncHookHandler to validate a request using a code which can be given through either the Body or QueryString of my requests.
When registering a route this function is given to the preHandler property.
Below code sample did the trick when I was on "v4.13.0", but after updating to "v4.23.2" I seem to be getting an error in my types.
What I'm trying to achieve is extending the Request object with following properties:
I am not sure on how to achieve this. I have looked into the docs but didn't really find a way there either.
Is there anyone who could give me a hand with this? Thanks in advance! 馃檹
馃挰 Question here
Hi there!
I wrote a preHandlerAsyncHookHandler to validate a request using a code which can be given through either the Body or QueryString of my requests.
When registering a route this function is given to the
preHandler
property.Below code sample did the trick when I was on "v4.13.0", but after updating to "v4.23.2" I seem to be getting an error in my types.
What I'm trying to achieve is extending the Request object with following properties:
I am not sure on how to achieve this. I have looked into the docs but didn't really find a way there either.
Is there anyone who could give me a hand with this? Thanks in advance! 馃檹
Code sample
Error message for reference:
Your Environment
The text was updated successfully, but these errors were encountered: