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

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 มิ.ย. 2024
  • In this video you'll learn about how JWT Authentication works, and how token authentication differs from sessions.
    Contact Me: onelightwebdev@gmail.com
    Github: github.com/nikitapryymak
    Support Me: www.paypal.com/paypalme/nikit...
    #jwt #jsonwebtoken #jwtauth
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @sydneyidundun9187
    @sydneyidundun9187 ปีที่แล้ว +3

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

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

    Absolutely wonderful clarity and quality ❤️

  • @tompryymak9469
    @tompryymak9469 ปีที่แล้ว +6

    Great job! So helpful.

  • @SureshS-fv5co
    @SureshS-fv5co 3 หลายเดือนก่อน

    Very concise explanation of JWT tokens, Thanks!

  • @imadhamdiazghough9015
    @imadhamdiazghough9015 5 หลายเดือนก่อน

    best explanation on yt, keept the good work my friend

  • @deanelie7775
    @deanelie7775 4 หลายเดือนก่อน

    Such a great explanation! thank you so much.

  • @kirankumarrudraraju2429
    @kirankumarrudraraju2429 หลายเดือนก่อน

    Excellent explanation and very easy to understand..thank you

  • @priyasivakumar3607
    @priyasivakumar3607 ปีที่แล้ว +3

    It’s Helpful. Thanks

  • @pulserudeus7968
    @pulserudeus7968 16 วันที่ผ่านมา

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

  • @devidas90
    @devidas90 2 หลายเดือนก่อน

    Nicely explained dude, keep it up 👍

  • @hex9219
    @hex9219 11 หลายเดือนก่อน

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

  • @Parhoom
    @Parhoom 25 วันที่ผ่านมา

    Excellent explanation. thank you!

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

    Osm man keep doing like this....

  • @HossamQandeel
    @HossamQandeel หลายเดือนก่อน

    Amazing ❤️🇪🇬

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

    Perfect.

  • @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 7 หลายเดือนก่อน

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

  • @user-tp4fj2kf3p
    @user-tp4fj2kf3p 6 หลายเดือนก่อน +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  3 หลายเดือนก่อน +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

  • @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 👍

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

    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