express-jwt icon indicating copy to clipboard operation
express-jwt copied to clipboard

the router name question

Open unkownY opened this issue 7 years ago • 0 comments

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?

unkownY avatar Aug 30 '19 06:08 unkownY