NestJs authentication and authorization with jwt tokens. NestJs course [pt. 6]
Автор: Tech With Piotr
Загружено: 2022-11-02
Просмотров: 2527
Описание:
Learn how to authenticate the users properly in nestJs apps using JWT tokens together with passportJs package.
In the sixth episode of the nestJs crash course, I will show you a full example of authentication system build from the scratch. I will teach you how to use nestJs guard classes, how to issue JWT tokens and finally, how to add user's role to the system.
Starting code: https://github.com/piotrmol/nestjs-re...
Final code: https://github.com/piotrmol/nestjs-re...
Introduction: 00:00
Revision of code: 00:23
JSON web tokens explained: 02:39
User registration endpoint: 03:24
User login endpoint : 06:09
Refresh token endpoint: 10:30
NestJs guard class explained: 13:12
Passport jwt strategy: 14:55
AccessToken guard: 16:52
Implementing role checking: 18:42
🎓 Enhance your learning journey! Visit my second channel, for valuable tips & tricks on mastering academics: / @piotrteaches 👨🎓👩🎓
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: