From the course: React: Securing Applications

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Introduction to JSON Web Token (JWT) and what it solves

Introduction to JSON Web Token (JWT) and what it solves - React.js Tutorial

From the course: React: Securing Applications

Start my 1-month free trial

Introduction to JSON Web Token (JWT) and what it solves

- [Instructor] JWT or JSON Web Token is an open standard that is used to securely transmit information in between parties. The JSON object currently consists of three items, a header, the payload, and the signature. So if you want to follow along go to jwt.io and then scroll down until you see this section here. So we're going to see the header, the payload, and the signature right here. So the header has usually two parts, the type of token, and the hashing algorithm used to encrypt the token, as you can see here. Then the payload consists of the metadata from the request party that is required from the server. Some typical information you'll see in the payload are issuer of the request, expiration, name, et cetera. Like you can see right now we have a name, and a whole bunch of information that is important for the request. And finally the signature is what prove the requestor is who he says he is, and it is how the…

Contents