Required fields with no specified value are not evaluated on truthyness
naten3 opened this issue · comments
The documentation says If only this value is passed to jwt.require(), then the middleware function will check that the value is truthy
but if I require for example id
and the token has id=3
, the truthiness check will fail eg true == 3
evaluates to false