node-course-v3-code | Code for version 3 of The Complete Node.js Developer Course | Runtime Evironment library
kandi X-RAY | node-course-v3-code Summary
kandi X-RAY | node-course-v3-code Summary
Code for version 3 of The Complete Node.js Developer Course
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-course-v3-code
node-course-v3-code Key Features
node-course-v3-code Examples and Code Snippets
Community Discussions
Trending Discussions on node-course-v3-code
QUESTION
I am doing a course in Node.js right now and I am finishing an API with authentication using JWT and Bcrypt.The code can be found on the link below. The code is rather simple and I understand it all but my question is, how would this work for a web app and not using postman? Is it even possible to send these Authentication bearer tokens in req.headers using HTML forms,buttons or some other way from the front end? Is there no way of achieving this without using Passport? Please can somebody give a brief answer to give me an idea on how to do it if possible because I am googling for hours trying to see if this method of authentication can be used for web apps some way.
https://github.com/andrewjmead/node-course-v3-code/tree/master/task-manager/src
...ANSWER
Answered 2019-May-02 at 22:00I looked at your code using the link you provided. The short answer is YES
you can send the bearer token inside the req.headers.authorization
from the front end.
The way you send it depends on your front end implementation.
- If you use fetch API, you can send the bearer token using fetch API request options
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-course-v3-code
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page