Milky0217 14c2ef25de fix(auth): /weather/details 端点自己验证 JWT(修复静默刷新后仍 401 问题)
问题:/weather/details 不在 jwt_middleware 保护范围内,导致即使前端发送 Authorization header,后端也不会验证 JWT。

修复:使用 HttpRequest 直接从 Authorization header 提取并验证 JWT,而非依赖 middleware 注入的 Claims。

验证:curl 测试确认 /weather/details?id=2 返回正确数据
2026-04-19 17:34:35 +08:00
2025-09-08 09:43:52 +08:00
Description
ASD Rust Backend
2.7 MiB
Languages
JavaScript 77%
Rust 12.1%
Shell 6.9%
CSS 3.7%
HTML 0.2%
Other 0.1%