Files
sub2api/backend
kone 0984773711 fix(gemini): skip token cache when expires_at is within refresh window
When a Gemini OAuth account receives a 401, ratelimit_service sets
expires_at=now() to force a refresh. Previously GetAccessToken would
return the stale cached token before checking expires_at, causing
repeated 401s until the cache TTL expired.

Fix: check needsRefresh before attempting cache lookup.
2026-06-09 01:00:11 +08:00
..
2026-06-03 23:52:28 +08:00
2026-05-17 06:19:56 +08:00
2026-05-17 06:19:56 +08:00
2026-05-08 14:42:20 +08:00
2026-05-08 14:42:20 +08:00