Answer the question
In order to leave comments, you need to log in
How on a route where it is required to give the token instead of the default message?
There is authentication by json web token using passport. On the route where the token is required, if it was not sent, the following default message
Question is given. How can I give my message instead?
Repository with the project
https://github.com/wsavd/jwtAuth
I provide screenshots of the project
Links to clickable pictures
prnt.sc/ev0uat
prntscr.com/ev0v2w
prntscr.com/ev0v9q
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question