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> |
||
|---|---|---|
| .. | ||
| FeishuAuthService.swift | ||
| FeishuError.swift | ||
| FeishuModels.swift | ||
| FeishuService.swift | ||