26 Nest JS Guards what are they and how to use them
ฝัง
- เผยแพร่เมื่อ 11 ต.ค. 2024
- #nodejs #nestjs #javascript
When you want to restrict certain APIs of your application to specific role holders, Nest Js Guards will help you achieve that.
In this video, we are going to create a new Guard. See, what is their role and how we can protect one route of our application to a specific user role only.
Code: my-lnk.com/218...
You can find me on:
Twitter: / amitavroy7
Discord: / discord
Great, simple demo and explanation. Thanks!
Glad you enjoyed it!
Gracias, me ayudaste mucho :D
Good to know it helped
Since you are making custom guard as injectable. Do we need to include that custom guard in provider section of module where the guard is used. Here specifically quiz module.
Yes, based on my understanding, we need to do that. However, I will still try to do without that and check
great
Thanks
Buen video! gracias
Consulta, y como puedo hacer un decorador para que defina rutas publicas? :o
Thanks, glad you liked it
nice cursor
Thanks!