🔥 🔥 NestJS 🔥🔥
Watch the entire course in order: 👉 • ¿Qué es NESTJS? 🤔 Nest JS vs Express Parte 1
In today's video, we'll continue talking about NestJS, specifically authentication. We'll cover how to generate a JSON, a token, and a JWT, and how to protect routes so they can only be accessed with a valid session token.
If you're starting to program, or if you want to strengthen your knowledge, welcome to this channel.
Here we discuss Angular and Node.js from scratch, and we also complement this with free MongoDB courses, frontend and backend development, real-world programmer problems, and solutions that are applicable in everyday work.
Here you'll find programming tutorials specifically for Angular, Node tutorials, and together we'll put real-world programming exercises into practice, so come on in and let me tell you more.
If you're not already subscribed and you like this content 👉 / @leifermendez
👋 FREE COURSES
├ 0️⃣ SEE THEM ALL ⮕ https://leifermendez.github.io/#/
├ 1️⃣ ANGLARA from scratch ⮕ https://bit.ly/367tJ32
├ 2️⃣ NODE Express from scratch ⮕ https://bit.ly/3od1Bl6
├ 3️⃣ MONGODB from scratch ⮕ https://bit.ly/3qh35wK
├ 4️⃣ SOCKET.IO from scratch ⮕ https://bit.ly/3pg1Q02
└ 5️⃣ NGRX from scratch ⮕ https://bit.ly/ngrx-desde-cero
🤑 PAYMENT COURSES
├ANGULAR for beginners ⮕ https://link.codigoencasa.com/PROMO-I...
├NODE ⮕ https://link.codigoencasa.com/NODE
└ Basic AWS from scratch ⮕ https://link.codigoencasa.com/AWS
🚀 STUDY COMMUNITY AND GROUPS
├ SUBSCRIBE ⮕ / @leifermendez
├ MEMBERS ⮕ / @leifermendez
└ TELEGRAM ⮕ https://t.me/leifermendez
🏆 MORE CONTENT
├ SPOTIFY ⮕ https://spoti.fi/3vnrvqg
├ YOUTUBE ⮕ / leifermendez
├ INSTAGRAM ⮕ / leifermendez
├ BLOG ⮕ https://www.codigoencasa.com
└ FACEBOOK ⮕ / leifermendez.dev
💰 PROMOTIONS AND DISCOUNTS
├ HOSTING (Take advantage of the discount) ⮕ https://bit.ly/hosting-descuento-leif...
├ VPN (3 months of free service) ⮕ https://bit.ly/vpn-leifermendez
└ SEE EVERYTHING ⮕ https://link.codigoencasa.com/MAS-COSAS
🧠 REPOSITORY AND 𝐂𝐎𝐃𝐈𝐆𝐎𝐒
└ 𝙂𝙄𝙏𝙃𝙐𝘽 ⮕ https://github.com/leifermendez
✉️ 𝐂𝐎𝐍𝐓𝐀𝐂𝐓𝐎
└ 𝙈𝘼𝙄𝙇 ⮕ [email protected]
npm install --save @nestjs/jwt passport-jwt
npm install --save-dev @types/passport-jwt
npm install bcrypt --save
0:00 Intro
0:47 Required dependencies
1:52 Summary
4:50 Auth Controller
7:00 Auth Service
8:10 Encrypting with bcrypt
10:41 Login Controller
14:00 Validating Password
17:25 JWT
19:41 Generating Token
21:04 Signing Token
23:00 JWT Strategy
27:00 Protecting Routes with Sessions
31:50 Summary
If you find the content of this video relevant, remember to subscribe to the channel, activate the notification bell so YouTube alerts you every time I upload a new video, and give it a thumbs up.
#leifermendez