Next.js + NestJS | Secure Cookie Authentication

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

thank you so much, i'm currently working on a same tech stack. I utilized the auth.js for the authentication, but your approach is so simple and straightforward, I think I will rewrite the authentication flow with your solution. :)

kisstamas
Автор

Wow this is what I am looking for, this is easier to understand more than anything,
Could you please extend this more with social login that already authenticated from backend.

PattyBeautCode
Автор

sir can you make tutorial for jwt authentication (access token & refresh token) nestjs + nextjs

igmtink
Автор

Thanks for ur explanation but I have a question about auth with google or another oauth2 when i use nest and next i get a error in cookies firefox browser block my site as tracking please if you have any solution to implement logic

reedromme
Автор

Thanks you so much. I was struggling on setting cookies on the browser.

I have a route for refreshing the tokens.
When an end point throws unauthorised error, I want to call the refresh-tokens end point and set the updated cookie on the browser.

Can you help me with this? I am facing problem like next js doesn’t allow modification of cookies outside server actions or api routes

tanvirhossain
Автор

what about refresh token implementation?

khantseithu
Автор

Sir please can you show us the middleware protection file please🙏🙏

dolapoajayi
Автор

what if we wanna req from client component ?

mahmoudelalfy
Автор

Haha weird seeing the Angular logo in a next.js app (nestjs file icons)

TayambaMwanza
Автор

Or rather please tell me how to go about it

dolapoajayi
visit shbcf.ru