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!
Github for this video: https://github.com/joeythelantern/Res...
Github for previous APIs: https://github.com/joeythelantern/Typ...
Music by: Tesko / prod. THXMOS
Disclaimer: I am by no means a professional. I am just programmer with a lot of experience who would rather teach what he knows for free in his spare time in order to pay it forward. I believe that sharing some of my basic knowledge on this platform can help others get started. There are many ways to program something and the videos you see here are my take on the typescript world 😊.
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
#typescript #jwts #mongo #jsonwebtokens