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
I have a middleware that is checking if a given id is allowed to be read by a user. However this could be a security hole unless I can enforce typechecking on the data in my input.
I want to make use of the @isNumberString class-validator directive on my Args before the security middleware is run. Am I missing something obvious in how to achieve this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a middleware that is checking if a given id is allowed to be read by a user. However this could be a security hole unless I can enforce typechecking on the data in my input.
I want to make use of the
@isNumberString
class-validator directive on myArgs
before the security middleware is run. Am I missing something obvious in how to achieve this?Beta Was this translation helpful? Give feedback.
All reactions