Authentication with JSON Web Tokens using NodeJS, Express, Typescript & MySQL

preview_player
Показать описание
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!

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 MySQL & Connfiguration
21:19 Interfaces
22:20 Filling out the Controller
28:46 Testing

#typescript #jwts #mysql#jsonwebtokens
Рекомендации по теме
Комментарии
Автор

Your way of teaching is fast paced and elegant. You assume that we are smart and don't need to be babied, and that we can look up the minute details by ourselves.

It's very refreshing honestly, I don't feel like I'm wasting any time by watching your videos, it's condensed down into the info that matters, which is perfect for those who aren't still in the beginner stages of coding, and it seems like you're trying to target those of us who are more intermediate in the field, and you do it well!

Great tutorial as always, exactly what I needed, I've been creating my first ever backend from scratch (as a React frontend dev), and your videos have helped me learn the backend more, while not sacrificing away the utility of TypeScript.

kylemckell
Автор

I'm node js developer from last 4 years and I loved the coding way you implemented in this video, feeling bad to see your subscriber, I am requesting to community please support such content

muzammilinsafian
Автор

OMG, this was the tutorial i was struggling to fing. you explained things clearly and i didnt have major issues adapting your solution to my code (i was using prisma and postgres). I would love to see a follow up with refresh tokens!

ciniss
Автор

Can you make an additional video implementing a refresh token?

shawn
Автор

Thank you so much for this spectacular content! Really helped me out

lifebylazy
Автор

Amazing tutorial.
Thanks for sharing your knowledge and your time to create this vid.
@everyone here : C'mon ... subscribe !! This guy deserves it.

johnnydriesen
Автор

The video and the GitHub repository do not completely match. The video seems to have more recent code. It would be nice if you could push all the updates.

leocrawf
Автор

How do you escape the values before you insert them in the database?

leocrawf
welcome to shbcf.ru