NestJS Refresh Token: Step By Step Guide With Passport.JS

Поділитися
Вставка
  • Опубліковано 8 вер 2024

КОМЕНТАРІ • 17

  • @SakuraDev
    @SakuraDev  Місяць тому

    Hey Developers! Please Like, Share, Subscribe, and comment your thoughts below-your support means a lot to me! ❤❤❤

  • @olagokebankole5853
    @olagokebankole5853 Місяць тому +1

    This particular series has come handy for a particular project i actually want to start, keep up the energy.

    • @SakuraDev
      @SakuraDev  Місяць тому

      That's fantastic to hear! I'm glad the series has been helpful for your project. Your support and enthusiasm motivate me to continue creating valuable content.

  • @raidthabet9074
    @raidthabet9074 Місяць тому

    Keep up the great work!

    • @SakuraDev
      @SakuraDev  Місяць тому

      Thank you! I appreciate the encouragement. I'll keep doing my best! 😊

  • @andrejkling3886
    @andrejkling3886 Місяць тому +1

    Excellent…🔥🔥🔥💯🏄‍♂️ thank you 🙏

    • @SakuraDev
      @SakuraDev  Місяць тому

      You're very welcome! I'm glad I could help. ❤️❤️

  • @sonamsherpa2409
    @sonamsherpa2409 7 днів тому

    Could we create a video illustrating a scenario where a user attempts to log in on multiple devices? This method won't support refreshing tokens across all active login sessions.

    • @SakuraDev
      @SakuraDev  4 дні тому

      I will search for the solution and create a video about that.

  • @apdiwhapmohmet4458
    @apdiwhapmohmet4458 Місяць тому

    Please add more features like role based authorization

    • @SakuraDev
      @SakuraDev  Місяць тому +1

      That's a great suggestion! Role-based authorization (RBA) is a crucial aspect of building secure applications. I'll definitely consider adding more content on RBA to the course.

    • @apdiwhapmohmet4458
      @apdiwhapmohmet4458 Місяць тому

      @@SakuraDevThanks pro

  • @tutuacs2827
    @tutuacs2827 Місяць тому

    Hey, I'm trying to create a context for my navbar to display some user properties that can change over time. I want to update this context both when the token is refreshed and in some client-side components.
    For example, the user has a number that ranges from 1 to 5 and increases every 4 hours. Sometimes, this number might decrease on the site. I would like to update the navbar context every time the token is refreshed (using the refreshToken function in authOptions) and also when certain client-side components are used. Is this possible?

    • @SakuraDev
      @SakuraDev  Місяць тому +1

      Hey @tutuacs2827! Use React's Context API to manage and update user properties. Update the context in your refreshToken function and in client-side components as needed. This will keep your navbar in sync with the latest data. If you need more details, feel free to ask!

  • @user-rw5ib8mo5k
    @user-rw5ib8mo5k 10 днів тому

    How about storing refresh token in a http cookie instead of sending it in a response?