JWT 解析与验证

解析、验证及调试 JWT 令牌

JWT 令牌 (Encoded)
Header: Algorithm & Token Type
JSON
{
  "alg": "HS256",
  "typ": "JWT"
}
Payload: Data
{
  "sub": "1234567890",
  "name": "John Doe",
  "admin": true
}
Signature
Signature verification ensures that the token hasn't been altered.