No video

JWT Authentication with Cookies in Express Server

  Рет қаралды 3,969

WEB CIFAR

WEB CIFAR

Күн бұрын

Today, we will implement authentication using JSON-Web-Token in a Express.js Server. When someone will log in, We will store the JWT token in a Cookie and send it to the client side. Finally, We will create a middleware which will check Auth before it goes into any private or protected route.
♥ Support the Content Creator:
☕ Buy Me A Coffee: www.buymeacoff...
🔔subscribe and turn on the notification bell.
👉 source code: github.com/Sha...
Follow Shaif Arfan 👇👇
Instagram: / shaifarfan08
Facebook: / fb.shaifarfan08
Twitter: / shaifarfan08
Timestamps -
00:00 - Intro
01:20 - Setup Express Server
15:47 - Registration
27:01 - Login
37:32 - Check Auth Middleware
43:21 - Logout
46:23 - Fix
48:27 - Outro
▶ Also Watch :
HTML CSS Portfolio Project: • HTML CSS Portfolio Pro...
One Page HTML & CSS Project: • One Page Full Website ...
HTML & CSS Landing Page : • HTML & CSS Website Lan...
Mini Project for HTML & CSS : • Responsive Website Wit...
How To Make A WordPress website: • How To Make A Professi...
▶ Some useful Playlist :
HTML & CSS: • HTML & CSS
Vanilla JavaScript : • Vanilla JavaScript
Frontend Mentor Challenges: • Frontend Mentor Challe...
30days30submits Challenge: • 30days30submits
🌐 Join The Community :
Our website : webcifar.com/
Facebook Page : / webcifar
Facebook group : bit.ly/fb-group...
Instagram : / web_cifar
twitter : / webcifar
Github: github.com/Web... & github.com/sha...
#webcifar #jwt #expressjs

Пікірлер: 18
@webcifar
@webcifar 2 жыл бұрын
🔔subscribe and turn on the notification bell. 👉 Website: webcifar.com 👉 Facebook group : facebook.com/groups/webcifar 👉 Instagram : instagram.com/web_cifar/
@suzannecurtis9757
@suzannecurtis9757 Жыл бұрын
Thank you so much. Compared to other tutorials I've tried to learn from, your explanation is very specific and you include just the modules needed to execute and explain all in each step. 🙏 This was my first jwt
@dennohpeter
@dennohpeter 11 ай бұрын
Very informative video, thank you so much!
@maxshng
@maxshng Жыл бұрын
Thanks a lot. Well explained and practical.
@webcifar
@webcifar Жыл бұрын
Glad it was helpful!
@1259Gabriel
@1259Gabriel Жыл бұрын
Thank you! Helped a lot with the header issue and with JWL!
@El_ingeniero_
@El_ingeniero_ Жыл бұрын
llevo mas de 6 horas en vídeos viendo los token y nada y veo el tullo y pummm...! veo donde era mi error que es lo que me faltaba, amigo muchas gracias saludos desde México
@AhmedAdel-ct7qk
@AhmedAdel-ct7qk 2 жыл бұрын
Awesome Tutorial 💙💙, Well explained
@webcifar
@webcifar 2 жыл бұрын
Thanks a lot 😊
@vignesh-xb5uz
@vignesh-xb5uz Жыл бұрын
nice brother
@renatomeireles9596
@renatomeireles9596 2 жыл бұрын
Very good Sir, thanks for sharing
@webcifar
@webcifar 2 жыл бұрын
Most welcome ♥
@user-oj8tk9zm7n
@user-oj8tk9zm7n 8 ай бұрын
Shouldnt the token be inside the Authorization header for it to be secure?
@captainalpha4853
@captainalpha4853 Жыл бұрын
Will the cookie be in every response? And how can I attach it to all the requests from client side?
@morchellemusic2829
@morchellemusic2829 Жыл бұрын
Yes, it attaches to every call to that domain afterwards until either cleared out or expires, so on the front end you don't need to do anything. He put the username in the json response because maybe he needs to display the username on the app
@captainalpha4853
@captainalpha4853 Жыл бұрын
Hello, I'm using express-session package. When i log in, i see that there is a cookie in the response. However, when i try to make a new request to the server, I don't see the cookie in the request header. PS: I'm using Nuxt3 for client side.
@MukeshSinghKabawat
@MukeshSinghKabawat Жыл бұрын
it's not working with React js
@webcifar
@webcifar Жыл бұрын
Please, Check out MERN stack tutorial to see how we used it: kzbin.info/www/bejne/baSag3uZlJ2Gl7c
ESLint setup with prettier for any JS Project in VS Code
14:17
React Password Generator App | Beginner Project
46:14
WEB CIFAR
Рет қаралды 4,4 М.
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 2,7 МЛН
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН
Алексей Щербаков разнес ВДВшников
00:47
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 41 МЛН
Mern Stack Project For Beginners | Todo App | JWT | Cookies | Auth
4:08:36
Scammed selling my MacBook, almost
15:09
Alex Ziskind
Рет қаралды 11 М.
HTML CSS Resume | Beginner Project
1:04:17
WEB CIFAR
Рет қаралды 87 М.
JS Array Methods - Map & ForEach
8:31
WEB CIFAR
Рет қаралды 515
Zustand Crash Course | React State Management
27:15
WEB CIFAR
Рет қаралды 6 М.
Password Generator App | JS Project For Beginners
49:20
WEB CIFAR
Рет қаралды 1,6 М.
JS Array Method - Filter
9:13
WEB CIFAR
Рет қаралды 455
Next.js + MDX Blog Website
2:14:37
WEB CIFAR
Рет қаралды 3,2 М.
How to Download and Install Node.js in 2024 | Mac & Windows
10:44
The Common Coder
Рет қаралды 385
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 2,7 МЛН