Hello,
I was trying to avoid token validation for particular urls as shown below
/ - allow without token
/api - allow without token
/api/auth - allow without token
/api/usrs - allow with token
/api/usrs/:id - allow with token
So i tried to set below
const expressJwt = require("express-jwt");
expressJwt({"Tango"}).unless({
path:[
'/',
'/api',
'/api/usrs/auth'
]
});
Any one facing same issue?