bugger/Sources
tigerenwork cf9de54792 fix: decode OAuth token response directly, not via FeishuAPIResponse wrapper
The /authen/v1/oidc/access_token and refresh_access_token endpoints return
token fields (access_token, refresh_token, expires_in) at the top level
of the JSON response, not nested under a 'data' key like standard Feishu
API responses. This caused 'Feishu API error (0): ok' — code 0 with no
wrapped data.

Changed exchangeCode and refreshAccessToken to decode OAuthTokenData
directly from the response. Removed unused decodeAPIResponse helper.

Also removed redirect_uri from token exchange body (not required by
Feishu's token endpoint).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-29 00:13:48 +08:00
..
Models feat: full macOS menu bar app implementation 2026-06-28 20:56:44 +08:00
Services fix: decode OAuth token response directly, not via FeishuAPIResponse wrapper 2026-06-29 00:13:48 +08:00
Utils feat: switch OAuth redirect to localhost loopback (RFC 8252) 2026-06-28 23:48:49 +08:00
ViewModels feat: full macOS menu bar app implementation 2026-06-28 20:56:44 +08:00
Views fix: wider settings window, better OAuth error handling, empty refresh token guard 2026-06-29 00:09:28 +08:00
AppDelegate.swift feat: switch OAuth redirect to localhost loopback (RFC 8252) 2026-06-28 23:48:49 +08:00
BuggerApp.swift feat: full macOS menu bar app implementation 2026-06-28 20:56:44 +08:00