picoclaw/pkg/channels/feishu
Vast-stars 3e9b7ce9c1
fix(feishu): invalidate cached token on auth error to enable retry recovery (#1318)
The Lark SDK v3's built-in token retry loop does not clear stale tokens
from cache when the server returns error 99991663 (tenant_access_token
invalid), causing all API calls to fail until the token naturally
expires (~2 hours).

- Add tokenCache struct (implementing larkcore.Cache) with
  Get/Set/InvalidateAll methods and proper expired-entry cleanup
- Wire custom cache into lark.NewClient via WithTokenCache()
- Add invalidateTokenOnAuthError helper called in all API methods
2026-03-18 19:07:49 +08:00
..
common.go fix(feishu): address PR #1000 review comments from @xiaket 2026-03-03 16:44:24 +08:00
common_test.go fix(feishu): address PR #1000 review comments from @xiaket 2026-03-03 16:44:24 +08:00
feishu_32.go fix(feishu): address review findings 2026-03-03 01:27:46 +08:00
feishu_64.go fix(feishu): invalidate cached token on auth error to enable retry recovery (#1318) 2026-03-18 19:07:49 +08:00
feishu_64_test.go fix(feishu): address PR #1000 review comments from @xiaket 2026-03-03 16:44:24 +08:00
init.go refactor(channels): add channel subpackages and update gateway imports 2026-02-20 23:25:44 +08:00
token_cache.go fix(feishu): invalidate cached token on auth error to enable retry recovery (#1318) 2026-03-18 19:07:49 +08:00