Auth part 1: Authentication with JWT and Express

Опубликовано: 26 Июнь 2026
на канале: unblockMe
231
3

In this video we'll cover how to build a login system and consume the session token using JWT and Express.

Encrypt your passwords before storing them in the database!

00:00 Intro
01:30 What is Authentication
04:30 Creating a sample user
05:59 Encrypt your passwords!
07:20 Calling the skeleton login api
08:35 More secure error messages
12:11 Session Tokens and JWT
14:50 Using JWT to generate a session token
18:22 Setting a cookie in Express (and expiration)
20:46 Checking our session token in jwt.io
21:46 Sending the cookie to the server in Postman
23:35 Retrieving cookies in Express
25:10 Validating the session token using JWT
27:12 Finishing the /me api
28:17 Outro