Тёмный

Nest.js Browser Cookie based authentication with Passport JWT 

Tigran Tech
Подписаться 826
Просмотров 7 тыс.
50% 1

Nest.js authentication becomes easy with Passport.js, but with a Microservice logic there is a need to support multi-domain requests usually support for a subdomains like treescale.com and app. treescale.com
This video goes over to demonstrate how to make a flexible authentication process with Browser Cookies and Nest.js JSON Web Tokens
Project Link
github.com/tigranbs/nestjs-co...
-----
Website: tigran.tech​
Twitter: / tigranbs​
Medium: / tigranbs​
Github: github.com/tigranbs

Наука

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

 

26 июл 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@mustafa-ahmed-dev
@mustafa-ahmed-dev 11 месяцев назад
Thank you, very good explanation
@pepikkk10
@pepikkk10 16 дней назад
Thank you SO much! well explained!!!
@mdsajaldeowan1054
@mdsajaldeowan1054 3 месяца назад
Thanks for the great video exactly the video I was looking for once again thank you for the informative video
@bpospanov
@bpospanov 10 месяцев назад
THANKS A LOT
@cuberos7430
@cuberos7430 8 месяцев назад
Amazing simple precise confortable explanation. Thanks a lot .Save my time.Keep making more amazing tutorials 💪🦾
@ephremdemelew6218
@ephremdemelew6218 11 месяцев назад
great video
@koldmane392
@koldmane392 9 месяцев назад
Thank you!
@hashamkhan5121
@hashamkhan5121 10 месяцев назад
Thanks a lot for this wonderful lesson. Can you please help me a bit? The cookie is set in browser when i call the api directly in browser, but it is not set in browser when i make api call from my front end React app, what can be the issue? I have verified my cors police configuration. I have searched the web but still could not solve my problem. Thanks
@tigrantech
@tigrantech 10 месяцев назад
That might be because the API doesn’t have access to the Frontend domain name. Make sure that the UI client has the “credentials” enabled for the API origin, otherwise the Frontend can’t share the cookies
@e.magnoneto5101
@e.magnoneto5101 8 месяцев назад
hi,do you had fixed this problem? i had exactly the same thing in my project.
@hashamkhan5121
@hashamkhan5121 8 месяцев назад
@@e.magnoneto5101 just Make sure you do the below before making login endpoint call axios.defaults.withCredentials = true
@franciscooteiza
@franciscooteiza 5 месяцев назад
You look scared, are you okay? Are you afraid that someone will know a dark secret about you?
@tigrantech
@tigrantech 5 месяцев назад
NestJS is scary 😱
Далее
Difference between cookies, session and tokens
11:53
Просмотров 598 тыс.
Add RBAC to Your Nest.js API in ~ 7 minutes
6:20
Просмотров 13 тыс.
Decouple your NestJS code with this technique!
11:37
Просмотров 33 тыс.
JWT Refresh Token with Asp.net Web API 8 and C#
43:31
Аутентификация в NestJS
3:56:40
Просмотров 20 тыс.