NestJs Authentication: Change Password, Forgot Password, Reset Password

preview_player
Показать описание
In this video we learn how to handle a user changing their password, forgetting their password, receiving a reset password link and handling it properly in a Nestjs backend.

Timestamp:
--------------------
0:00 - Part 1 Recap
1:30 - Overview and goals
2:28 - Change Password API
11:38 - Forgot Password API + Send email link
22:14 - Reset Password API
27:15 - Summary
Рекомендации по теме
Комментарии
Автор

loved ur explanation. Would be great to see u implement
1. passport for multiple types of authentication
2. may be role based access with permissions

maximvoicu
Автор

For a best user XP, it actually makes sense to delete a reset token already generated as users might request multiple times. so it would be good to check if there's a token generated by the user email we delete it before creating a new one attached to the same email. this way only the last generated token will work

dreamsachiever
Автор

i don't know why @Patch('change-password') give me an error:
Cast to ObjectId failed for value "change-password" (type string) at path "_id" for model "Account"

gaetanoalbanese
Автор

Loved it. being a front end developer and beginner in back end development, really learnt a lot.is there a third part?

sajidm
Автор

Great work, sir. Will there be a video about the authorization process?

belkhiriasadok
Автор

Thank You so much for your films, You are a great teacher. Please make a video about google, fb ... authentication.

marty