Stolen JWTs

In this lesson, we will discuss what happens when a JWT is stolen.

So far, we have discussed how JWTs are a secure way of exchanging information authentication.

Although JWT is a robust mechanism, it is still prone to attacks. In this lesson, we will discuss what happens if a JWT is stolen. We will also discuss how a hacker can make changes in a token and mislead us in believing that it is a valid token.

What would happen if JWT is stolen

If a hacker somehow gets access to our JWT, then there are two issues that we face:

1. Hacker can view sensitive information available in the token

As we discussed earlier, a JWT string is just base64 encoding of the ...

Access this course and 1400+ top-rated courses and projects.