AustP / jwt-express

Climb aboard the JWT Express and use JWTs in your Express app with ease!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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