bugger/Sources/Services/Feishu
tigerenwork f1ef89ef55 fix: tenant_access_token response is flat, not wrapped in data key
The /auth/v3/tenant_access_token/internal endpoint, like the OAuth token
endpoints, returns code, msg, tenant_access_token, and expire at the top
level of the JSON response — NOT nested under a 'data' key.

FeishuAPIResponse<TenantAccessTokenData> decoded successfully but with
data=nil (extra fields silently ignored by JSONDecoder). The guard then
threw FeishuError.apiError(code: 0, message: 'ok') — appearing to succeed
but always failing. This blocked the subsequent OAuth token exchange call.

- Added code/msg fields to TenantAccessTokenData
- tenantAccessToken() now decodes TenantAccessTokenData directly and
  checks data.code != 0 instead of going through FeishuAPIResponse

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-29 00:28:39 +08:00
..
FeishuAuthService.swift fix: tenant_access_token response is flat, not wrapped in data key 2026-06-29 00:28:39 +08:00
FeishuError.swift feat: full macOS menu bar app implementation 2026-06-28 20:56:44 +08:00
FeishuModels.swift fix: tenant_access_token response is flat, not wrapped in data key 2026-06-29 00:28:39 +08:00
FeishuService.swift feat: full macOS menu bar app implementation 2026-06-28 20:56:44 +08:00