Files
sub2api/backend/internal
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-05-17 06:45:35 +08:00
2026-05-17 06:45:35 +08:00
2026-05-16 15:31:08 +08:00