How Does JWT Authentication Work? (JSON Web Token) | Tokens vs Sessions

Поделиться
HTML-код
  • Опубликовано: 26 сен 2024
  • НаукаНаука

Комментарии • 32

  • @akilanramani
    @akilanramani Месяц назад

    The Best Explanation Ever.Thanks For Putting up in a more clear way Nikita !!

  • @1c72
    @1c72 2 года назад +5

    Absolutely wonderful clarity and quality ❤️

  • @clarkflavor
    @clarkflavor 3 месяца назад

    I'm deep-diving into JWT to learn it completely. Started watching a lot of videos on it, and this one is VERY good! Need to play it on loop for some time I bet

  • @sydneyidundun9187
    @sydneyidundun9187 2 года назад +3

    Amazing content bro, keep at it already a fan and this is the first video I’ve watched.

  • @PrashantKumar-ki1ny
    @PrashantKumar-ki1ny Месяц назад

    Loved the video.Your explanations were easy to understand and to the point.Loved it.Although I work as a Go Dev and most of your contents are not that relevant to me,I am still subscribing.Keep on the goo work!

  • @tompryymak9469
    @tompryymak9469 2 года назад +6

    Great job! So helpful.

  • @SureshS-fv5co
    @SureshS-fv5co 6 месяцев назад

    Very concise explanation of JWT tokens, Thanks!

  • @kirankumarrudraraju2429
    @kirankumarrudraraju2429 4 месяца назад

    Excellent explanation and very easy to understand..thank you

  • @eip408
    @eip408 3 месяца назад

    awesome! this explanation is the best out there! thanks man! instant subscriber here 🔥

  • @eleojoadegbe
    @eleojoadegbe Месяц назад

    very clear explanation. I love it . thank you

  • @imadhamdiazghough9015
    @imadhamdiazghough9015 8 месяцев назад

    best explanation on yt, keept the good work my friend

  • @priyasivakumar3607
    @priyasivakumar3607 2 года назад +3

    It’s Helpful. Thanks

  • @Parhoom
    @Parhoom 4 месяца назад

    Excellent explanation. thank you!

  • @mrlectus
    @mrlectus 2 дня назад

    The way i see people use JWT is that you would still need to do lookup with the id in the token

  • @evee4148
    @evee4148 2 года назад +1

    Osm man keep doing like this....

  • @devidas90
    @devidas90 5 месяцев назад

    Nicely explained dude, keep it up 👍

  • @gauravjain969
    @gauravjain969 2 месяца назад

    Thankyou very much.

  • @hex9219
    @hex9219 Год назад

    that's cool, it all make sense right now.
    thanks man

  • @deanelie7775
    @deanelie7775 7 месяцев назад

    Such a great explanation! thank you so much.

  • @asdfghjkl5418
    @asdfghjkl5418 2 года назад +1

    Perfect.

  • @emekarr
    @emekarr Год назад +1

    I don’t think JWT authentication can work effectively without making some sort of db call with every request. For example to know which tokens have been invalidated when the user signs out

  • @HossamQandeel
    @HossamQandeel 4 месяца назад

    Amazing ❤️🇪🇬

  • @RajBhandari-x8y
    @RajBhandari-x8y 10 месяцев назад +1

    you mention that it validation is done using private-key. That seems odd; generally we should be able to verify the signature using the public key, can you please clarify?

    • @nikita-dev
      @nikita-dev  7 месяцев назад +1

      There are various hashing algorithms that use different approaches to signing and verifying tokens. Some use just 1 private key (HS256), and some use both a public key and a private key (RS256). It just depends on the algorithm

  • @TheMudioc
    @TheMudioc Год назад

    Hello !
    Thank you for the refreshers ! Great video
    One question: what do you mean by creating a whitelist for refresh token ? If you use RT rotation, what's whitelisting adding to it ?

    • @nikita-dev
      @nikita-dev  Год назад

      A whitelist would be an alternative to RT rotation-- you wouldn't use both

  • @momobear66
    @momobear66 11 месяцев назад

    Can I use personal access token(PAT) as refresh token?

  • @mr.random8447
    @mr.random8447 Год назад +1

    Why not store JWT in secure httpOnly cookie instead, to prevent XSS on local storage?

    • @nikita-dev
      @nikita-dev  Год назад

      that works as well 👍

    • @mrlectus
      @mrlectus 2 дня назад

      Would not work on mobile app

  • @KelvinEthel
    @KelvinEthel 6 дней назад

    Thompson Barbara Perez James Thompson Daniel