Authentication with JSON Web Tokens using NodeJS, Express, Typescript & Mongo DB

This video shows you how to use JSON web tokens in a restful API while saving your data to a MongoDB. JSON web tokens are a great way to authenticate front end applications like React without having to constantly update the auth by using secure tokens to do that job for you. Tokens are hard to fake and a good way to secure your applications. Using JSON web tokens with other things such as SSL are a great way to make sure you stay secure!

Chapters:
0:00 Introduction
2:25 Setting up Common Functions & Configuration
6:58 Creating the JWT Middleware
12:34 Creating the Sign JWT Function
16:40 Setting up Mongo DB & Mongoose
19:59 Creating the User Model
21:09 Filling out the Controller
27:10 Testing

Github for this video: https://github.com/joeythelantern/Res…

Github for previous APIs: https://github.com/joeythelantern/Typ…

Subscribe: https://www.youtube.com/c/TheNerdyCanuck/featured

#json #node #nodejs #javascript

Authentication with JSON Web Tokens using NodeJS, Express, Typescript & Mongo DB