JWT Presentation

Learn about the authentication tokens that we can use to secure a session.

We'll cover the following

When it comes to authentication tokens, the JSON Web Token (JWT) is the standard. JWT is an open standard that allows the secure exchange of tokens between several parties.

Components of a JWT token

Overall, a JWT token is composed of three parts:

• A header which is structured in JSON and contains the validity date of the token.

• A payload which is also structured in JSON and can contain any data. In our case, it will contain the identifier of the “connected” user.

• A signature which allows us to verify that our application has encrypted the token and is therefore valid.

Get hands-on with 1200+ tech skills courses.