直接结论
Token 的 exp 早于验证端当前时间;请确认秒与毫秒单位,并通过正常登录或刷新流程获取新 Token。
错误出现在哪里
JWT 身份验证
根本原因
Token 可能确实过期、错误使用毫秒、服务器时间不准,或会话撤销后仍被复用。
最小复现
{"exp": 1700000000}修正示例
Issue a new short-lived access token through the trusted refresh or login flow. Do not edit the payload; that invalidates the signature.验证修复
把 exp 作为 Unix 秒与可信服务器 UTC 对比,并在服务端完成签名和 Claims 验证。还需要检查
- 解析不等于验签。
- 时钟偏差容忍应保持明确且足够小。
权威参考
版本相关行为请参考 RFC 7519。