zenfun
03ec45c84c
fix(auth): improve token metadata parsing and validation
...
Safeguard integer parsing in the `Whoami` handler by trimming whitespace and handling errors explicitly for `master_id`, `issued_at_epoch`, and `expires_at`. This prevents potential validation bypasses or incorrect behavior due to malformed metadata.
Add unit tests to verify invalid epoch handling and response correctness.
2026-01-03 16:19:42 +08:00
..
2025-12-24 02:15:52 +08:00
2025-12-22 12:02:27 +08:00
2025-12-22 12:02:27 +08:00
2025-12-22 12:02:27 +08:00
2025-12-21 23:32:07 +08:00
2025-12-31 16:09:02 +08:00
2025-12-31 18:01:09 +08:00
2025-12-31 13:17:23 +08:00
2025-12-30 00:11:52 +08:00
2025-12-31 14:18:09 +08:00
2026-01-03 16:19:42 +08:00
2026-01-03 16:19:42 +08:00
2025-12-24 02:15:52 +08:00
2025-12-24 02:15:52 +08:00
2026-01-02 23:17:55 +08:00
2026-01-02 23:17:55 +08:00
2025-12-21 13:07:00 +08:00
2025-12-21 13:26:16 +08:00
2025-12-25 01:24:19 +08:00
2025-12-30 00:11:52 +08:00
2025-12-31 14:18:09 +08:00
2025-12-21 23:03:12 +08:00
2026-01-02 21:35:42 +08:00
2026-01-02 21:24:56 +08:00
2025-12-21 20:45:16 +08:00
2025-12-21 20:45:16 +08:00
2025-12-21 14:13:35 +08:00
2025-12-22 12:02:27 +08:00
2025-12-22 12:02:27 +08:00
2025-12-24 02:27:11 +08:00
2025-12-18 16:43:12 +08:00
2025-12-24 02:15:52 +08:00
2025-12-21 23:16:27 +08:00
2025-12-21 23:16:27 +08:00
2025-12-28 02:49:54 +08:00
2025-12-22 12:02:27 +08:00
2025-12-31 13:17:23 +08:00
2025-12-22 12:02:27 +08:00
2026-01-02 22:20:37 +08:00
2025-12-27 13:24:13 +08:00