express-jwt
express-jwt copied to clipboard
the router name question
Router like this:
router.post('/resetflag', async (req,res)=>{
let { oid } = req.user;
...
});
the console said req.user is undefined
I consoled req.body,req.query, both have the params
when 'reset' is the start of router , like /resetcom,/resettest has the err.
but /likereset,/xresetis ok.
is there somthing wrong?