This is the episode 17 of the NestJS full course.
In this episode you will learn how to revoke (invalidate) JWT tokens in your NestJS application.
Chapters:
0:00 Intro
0:21 Project Review
1:19 Adding Refresh Token Field In User Entity
3:48 Generate Token Function
6:29 Hashing The Refresh Token
6:53 Argon2
7:50 Storing The Hashed Refresh Token
10:15 Validate The Refresh Token
13:45 Validate Refresh Token Function
20:19 Sign Out API
23:10 Testing
26:58 Next Video Announcement
#nestjs #authentication #refreshtoken
GitHub Repo (Please Give it a ⭐):
https://github.com/vahid-nejad/nestjs