Open vanshreddy opened 2 years ago
can you share your whole code
It might be related to Passport JWT middleware. You can modify this behaviour in src/config/passport.js
I have not changed any files but I created a new route :
router.route('/buser').get(userController.bUser)
wherebUser
is a function.When I run this route, I get a authorization error. How do I create a unauthorized route.
Have you solved it?
I have not changed any files but I created a new route :
router.route('/buser').get(userController.bUser)
wherebUser
is a function.When I run this route, I get a authorization error. How do I create a unauthorized route.