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

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • In this video you'll learn about how JWT Authentication works, and how token authentication differs from sessions.
    Github: github.com/nikitapryymak
    Support Me: www.buymeacoffee.com/nikitadev
    Contact Me: nikitadev292@gmail.com
    #jwt #jsonwebtoken #jwtauth
  • Věda a technologie

Komentáře • 26

  • @sydneyidundun9187
    @sydneyidundun9187 Před 2 lety +3

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

  • @tompryymak9469
    @tompryymak9469 Před 2 lety +6

    Great job! So helpful.

  • @biokode
    @biokode Před měsícem

    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

  • @1c72
    @1c72 Před 2 lety +5

    Absolutely wonderful clarity and quality ❤️

  • @SureshS-fv5co
    @SureshS-fv5co Před 4 měsíci

    Very concise explanation of JWT tokens, Thanks!

  • @imadhamdiazghough9015
    @imadhamdiazghough9015 Před 6 měsíci

    best explanation on yt, keept the good work my friend

  • @priyasivakumar3607
    @priyasivakumar3607 Před 2 lety +3

    It’s Helpful. Thanks

  • @deanelie7775
    @deanelie7775 Před 5 měsíci

    Such a great explanation! thank you so much.

  • @eip408
    @eip408 Před měsícem

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

  • @kirankumarrudraraju2429
    @kirankumarrudraraju2429 Před 2 měsíci

    Excellent explanation and very easy to understand..thank you

  • @hex9219
    @hex9219 Před rokem

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

  • @devidas90
    @devidas90 Před 3 měsíci

    Nicely explained dude, keep it up 👍

  • @Parhoom
    @Parhoom Před 2 měsíci

    Excellent explanation. thank you!

  • @evee4148
    @evee4148 Před 2 lety +1

    Osm man keep doing like this....

  • @gauravjain969
    @gauravjain969 Před 16 dny

    Thankyou very much.

  • @HossamQandeel
    @HossamQandeel Před 2 měsíci

    Amazing ❤️🇪🇬

  • @asdfghjkl5418
    @asdfghjkl5418 Před 2 lety +1

    Perfect.

  • @TheMudioc
    @TheMudioc Před rokem

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

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

  • @momobear66
    @momobear66 Před 9 měsíci

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

  • @mr.random8447
    @mr.random8447 Před rokem +1

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

  • @user-tp4fj2kf3p
    @user-tp4fj2kf3p Před 8 měsíci +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  Před 5 měsíci +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

  • @emekarr
    @emekarr Před rokem

    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