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

ความคิดเห็น • 12

  • @JR-lo2ei
    @JR-lo2ei 2 ปีที่แล้ว +1

    Great, simple demo and explanation. Thanks!

  • @Ararty
    @Ararty ปีที่แล้ว +1

    Gracias, me ayudaste mucho :D

  • @spellsaif
    @spellsaif 2 ปีที่แล้ว

    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.

    • @amitavroydev
      @amitavroydev  2 ปีที่แล้ว +1

      Yes, based on my understanding, we need to do that. However, I will still try to do without that and check

  • @OwaisAhmed-j8n
    @OwaisAhmed-j8n ปีที่แล้ว

    great

  • @misterl8129
    @misterl8129 ปีที่แล้ว

    Buen video! gracias
    Consulta, y como puedo hacer un decorador para que defina rutas publicas? :o

  • @wingmann3632
    @wingmann3632 ปีที่แล้ว +1

    nice cursor