26 Nest JS Guards what are they and how to use them

Sdílet
Vložit
  • čas přidán 18. 05. 2022
  • #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/2188012324
    You can find me on:
    Twitter: / amitavroy7​
    Discord: / discord

Komentáře • 12

  • @JR-lo2ei
    @JR-lo2ei Před rokem +1

    Great, simple demo and explanation. Thanks!

  • @Ararty
    @Ararty Před rokem +1

    Gracias, me ayudaste mucho :D

  • @spellsaif
    @spellsaif Před rokem

    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  Před rokem +1

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

  • @user-ru2jb4yo3s
    @user-ru2jb4yo3s Před 9 měsíci

    great

  • @misterl8129
    @misterl8129 Před rokem

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

  • @wingmann3632
    @wingmann3632 Před rokem +1

    nice cursor