express_jwt
express_jwt copied to clipboard
Added a valid status code
 When attempting to access nonexistent routes, the application incorrectly returns an "Unauthorized" error instead of the expected "404" response. This issue occurs because the verifyJWT middleware is...
### **Pull Request Description** #### **Problem** The `verifyJWT` middleware was being applied globally, causing it to intercept all requests, including those to nonexistent routes. This resulted in "Unauthorized" errors being...