Тёмный

Next.js + NestJS | Secure Cookie Authentication 

Michael Guay
Подписаться 19 тыс.
Просмотров 8 тыс.
50% 1

Learn a pattern to implement secure cookie-based authentication in a Next.js app with a NestJS backend.
Get access to the full course here: michaelguay.de...
UI: github.com/mgu...
Backend: github.com/mgu...

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@mguay
@mguay 5 месяцев назад
Get access to the full course here: michaelguay.dev/courses/build-an-app-with-next-js-nestjs-prisma/
@kisstamas6675
@kisstamas6675 5 месяцев назад
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. :)
@PattyBeautCode
@PattyBeautCode 4 месяца назад
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.
@igmtink
@igmtink 5 месяцев назад
sir can you make tutorial for jwt authentication (access token & refresh token) nestjs + nextjs
@beratgenc7695
@beratgenc7695 4 месяца назад
Very helpful, Thank you!!
@khantseithu
@khantseithu 5 месяцев назад
what about refresh token implementation?
@tanvirhossain3251
@tanvirhossain3251 2 месяца назад
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
@reedromme4115
@reedromme4115 5 месяцев назад
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
@dolapoajayi2156
@dolapoajayi2156 4 месяца назад
Sir please can you show us the middleware protection file please🙏🙏
@TayambaMwanza
@TayambaMwanza 4 месяца назад
Haha weird seeing the Angular logo in a next.js app (nestjs file icons)
@mahmoudelalfy8076
@mahmoudelalfy8076 5 месяцев назад
what if we wanna req from client component ?
@pavelarzhanov1187
@pavelarzhanov1187 5 месяцев назад
Then it will be much easier😊
@MoeloveMoeHumanity
@MoeloveMoeHumanity 2 месяца назад
just set credentials to true in your fetch call's headers, the cookies will automatically get sent back to your backend
@dolapoajayi2156
@dolapoajayi2156 4 месяца назад
Or rather please tell me how to go about it
Далее
Easy Next.js & NestJS Authentication with Clerk
33:23
POV: Your kids ask to play the claw machine
00:20
Просмотров 9 млн
Public Storage: NestJS + AWS S3
35:22
Просмотров 127
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Nest.js Metrics - Prometheus & Grafana Tutorial
22:42
NestJs caching with Redis
18:17
Просмотров 6 тыс.
POV: Your kids ask to play the claw machine
00:20
Просмотров 9 млн