How to verify a JWT token in JavaScript and Node.js?

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • If you would like to know how to verify and validate a JWT token with JavaScript and Node.js, this video tutorial is for you! I will show you how to:
    - create a mock of JWT and JWK with www.scottbrady...
    - setup NPM dependencies
    - decode a JWT token
    - check the Issuer claim
    - verify the token's date and signature by comparing with token's issuer public key
    What are JWT tokens and how to use them: • What is JWT? The JSON ...
    Code example on GitHub github.com/ps-...
    #quadmeup
    If you want to support me:
    ✅ Patreon / pawelspychalski
    ✅ Banggood affiliate bit.ly/2P8oAxr
    ✅ Paypal paypal.me/pawe...
    ✅ My website quadmeup.com/

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

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

    What are JWT tokens and how to use them: th-cam.com/video/9nBu5qtVxMM/w-d-xo.html

  • @leszektrojanowski4057
    @leszektrojanowski4057 2 ปีที่แล้ว

    Nice to see you on TH-cam, Paweł!

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

    its all about the right vid and this was the one for me

  • @JuriyBura
    @JuriyBura 2 ปีที่แล้ว

    Nice tutorial, would help to understand the "under the hood" aspects of token verification, however for a production use I would much prefer the library that hides implementation details. Is there a library that would take issuer, audience, downloads certs, chooses the right keys and verifies signature?

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

    Awesome video. Any idea how to do this without the jwk-to-pem package. Just curious. Thanks again

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

    need to know how to run this in vsc