I don't know how to use or share JSON Web Token on client for verification... Please help me :| | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I don't know how to use or share JSON Web Token on client for verification... Please help me :|

I'm not able to use or share jwt token value from one route to another or server to client if you want to help me then I will share everything in detail.

25th Mar 2020, 3:03 PM
Kushan Sharma
Kushan Sharma - avatar
4 Answers
+ 1
You need to use authentication as middleware Try following this tutorial : https://medium.com/swlh/jwt-authentication-authorization-in-nodejs-express-mongodb-rest-apis-2019-ad14ec818122
25th Mar 2020, 3:25 PM
Gordon
Gordon - avatar
+ 1
Yes, there is, you need to run a backend server which listen to a port and render an HTML as GUI, that's why you need Express.js
25th Mar 2020, 3:44 PM
Gordon
Gordon - avatar
0
Gordon this is working with postman where I have to set header but I am asking that is there any to work with client(browser) where I don't have to set value header and no sessions... and thank you for your help
25th Mar 2020, 3:38 PM
Kushan Sharma
Kushan Sharma - avatar
0
Yes everything is good except send verification middleware token value if you have any examples related to it then send me
25th Mar 2020, 4:05 PM
Kushan Sharma
Kushan Sharma - avatar