D
D
dsvsdv2017-04-11 10:46:27
JSON Web Token
dsvsdv, 2017-04-11 10:46:27

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
2033e24860484384bb4f6abe45b6e918.png
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
9cd8fe3db8ee49b99e52edb995a8625a.pngc7e1fdf60aa94935877fdba6d3f9675b.png4021b3051d4d49a1961a9d6bfc2dc348.png
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 question

Ask a Question

731 491 924 answers to any question