JWT 验证器
验证 JWT 令牌结构并检查过期状态。无需密钥即可验证 Header、Payload、算法和基于时间的声明。
JWT 验证参考
JWT 验证清单
| # | Check | What to verify | Requires Key? |
|---|---|---|---|
| 1 | Structure | Token has exactly 3 dot-separated parts | No |
| 2 | Header JSON | First part decodes to valid JSON | No |
| 3 | Payload JSON | Second part decodes to valid JSON | No |
| 4 | Algorithm | Header contains "alg" field | No |
| 5 | Expiration | exp claim vs current time | No |
| 6 | Not Before | nbf claim vs current time | No |
| 7 | Issuer | iss matches expected issuer | No |
| 8 | Audience | aud matches your app | No |
| 9 | Signature | Cryptographic signature verification | Yes |
常见 JWT 错误
| Error | Cause | Fix |
|---|---|---|
| jwt expired | exp claim is in the past | Refresh the token or extend expiry |
| jwt malformed | Token does not have 3 parts | Check token format and encoding |
| invalid signature | Signature does not match | Verify the signing key matches |
| jwt not active | nbf claim is in the future | Wait until the token becomes active |
| invalid algorithm | alg does not match expected | Ensure consistent algorithm configuration |
| invalid audience | aud does not match your app | Check audience claim configuration |
验证 vs 签名验证
JWT 验证检查令牌的结构和声明(格式、过期时间、必填字段)。JWT 签名验证使用密钥确认令牌未被篡改。此工具仅执行结构验证。
常见问题
相关 JWT 工具
评价此工具
4.4 / 5 · 89 人评价
Recommended
CloudflareFree CDN & DDoS protection保持更新
获取每周开发技巧和新工具通知。
无垃圾邮件,随时退订。
Enjoy these free tools?
☕Buy Me a Coffee