Skip to content
0:00 / 0:00

#jwt#node.js#express

Node.js API Authentication With JWT

Traversy Media

2.4M subscribers • 27 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Brad Traversy, creator of Traversy Media
  • Linked in the descriptionbradtraversy/node_jwt_example
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Beginner. No background in the topic needed.

572K views8 years ago2 recommendations

Web developmentSecurityNode.js, Deno and BunHTTP, REST and GraphQLWeb and application security

Brad Traversy demonstrates how to implement JSON Web Token authentication in a Node.js and Express API.

In this overview we will take a look at Node.js and JSON web tokens. I will show you how to create a route to generate a token and use that token to make a request to a protected route. SPONSOR: Check out Coding Dojo - codingdojo.com/l/yt/tr CODE: Github Repo With Example github.com/bradtraversy/node_jwt_example 💖 BECOME A PATRON: Show support & get perks! patreon.com/traversymedia ONE TIME DONATIONS: paypal.me/traversymedia VISIT MY WEBISTE: Check Out My Udemy Courses traversymedia.com FOLLOW TRAVERSY MEDIA: facebook.com/traversymedia twitter.com/traversymedia instagram.com/traversymedia discord.gg/traversymedia

Why it's here

2 people recommend this

What people say. Recommended as a helpful tutorial for implementing JWT authentication in Node.js.

u/ognjengtin r/node • Recommends

On “How to Authorize API calls”

If I understood you correctly, but if you are making android app or chrome extension it will have front end, and you can implement the functionality of sending tokens to the server in the head of the request for example. You can check out this video for better understanding of authentication and authorization through JWT tokens: [video

u/aholland909in r/node • Recommends

On “Best way to call authorization function for every route”

link to this video or link to this video should help you out!

u/I_hav_aQuestnioin r/node • Mentions

…ackend route. 3. I think I need to send do this in the header or cookie but no luck so far on how I am not using passport js for username and password. I just want to hit the login route to create a token and redirect to the post create route to make a post I have a working database and have followed this tutorial using postman to success - [video but this is where my progress stops Can someone point me in the right direction on how to get the webtoken in the header or cookie so i can access my protected route w/o using postman. Here is my github - https://github.com/jsdev4web/blog\_project\_API \- I probably dont have this setup the best, to get it to work I have to have a id of t…