7 months ago
JSON Web Token:
How JSON Web Token works:
The JWT is formed by concatenating the header JSON and the payload JSON with a “.” and optionally appending the signature. The whole string is then base64 URL encoded.
Example of JSON Web Tokens:
JWT Example:
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
Decoded Header
{
"typ": "JWT",
"alg": "HS256"
}
Decoded Payload
{
"iss": "LM",
"iat": 1619470682,
"exp": 1619471886,
"aud": "www.xeloxo.com",
"sub": "Ned"
}
Signature
mqWsk4fUZ5WAPYoY9bJHI7gD8Zwd
Full Stack Developer at Singapore
7 months ago