NestJs Authentication : Login, Signup, Refresh Tokens, JWT, Guards

preview_player
Показать описание
We implement : Login, Signup and Refresh Tokens APIs and learn the differences between an access and a refresh token, and how to handle them in our authentication flow.

Make sure to leave a like & Subscribe!

Timestamps:
-------------------------
0:00 - Introduction & Overview
2:02 - Signup API (Schema, DTOs, Logic)
13:48 - Login API & JWT
25:44 - Handling Refresh Tokens
31:00 - Refresh Tokens API
38:00 - Authentication Guard & Protected Routes
50:15 - Storing one refresh token per person
52:50 - Summary
Рекомендации по теме
Комментарии
Автор

Anything anyone needs to know to get started with NestJS is on your channel. Straightforward, simple and well explained content. Congrats man and Thank you.

fsassiv
Автор

I recently came across with your videos. I found these videos extremely easy to understand and helpful. Thank you so much for your time and efforts for making such content.

JayTailor
Автор

It''s really awesome. Thank you so much.

ahsanahmedrakib
Автор

Thank you so much for the time and effort you put in to helping us understand the content. It was really helpful.

LangehMohammed
Автор

I like How you make it look easy. The best explanation

samueladdisu
Автор

Please make full stack apps with nestjs, Really liked your videos they are very easy to understand as compared to other tutorials

muhammadfawwad
Автор

thankyou good sir that was very helpfull

RmoviesTN
Автор

Very helpful ! can you make a video about authorization (roles: admin, user.. )

nidhalchelhi
Автор

With this logic you can only be signed in on a single device with the same user right? So if I want users to be signed in on multiple devices I'd have to run some kind of cron job to delete every refresh token when it is expired?

robings
Автор

Excellent video. Thank you for your effort.
is there a particular reason why you used a different package for refresh tokens, instead of using the jwt package here as well?

HamzahAhmad-dbcy
Автор

Hi brother, do you use passport js or do it without it?

testuser-ie
Автор

when i try to execute the localhost:3000 request with the get method in postman i face a 404 Cannot GET /. I'm not using mongoose but typeOrm

ismaelseck
Автор

👏👏👏👏👏
Thanks for your video. Can I ask if is there anyway to declare a jwt service for global level and another one in Auth module scope, like: using it for refresh only?

quang.luu.
Автор

Why don't you use nestjs/passport for auth?

duykhanhnguyen
Автор

Also please can you help with a video showing how to do an email otp verification upon user signup using firebase authentication methods? It will be very much appreciated

LangehMohammed