The resulting JWT token consists of three parts separated by dots. The header and payload (data) are encoded in Base64, which, as we'll see in the task, can be easily decoded.
payload signature
eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyMTIzIiwiZXhwIjoxOTE2MjM5MDIyfQ.5bK9CxN8h9430ugDlLR_35r8jjkQEfywv
{
"sub": "user123",
"exp": 1916239022
}
It’s important to understand that a JWT token is not intended for transmitting sensitive or confidential information, as its contents are not encrypted by default. The signature protects the token from tampering but does not hide the data.