diff --git a/packages/v1-ready/zoho-crm/src/api.ts b/packages/v1-ready/zoho-crm/src/api.ts index e4a8396..df99119 100644 --- a/packages/v1-ready/zoho-crm/src/api.ts +++ b/packages/v1-ready/zoho-crm/src/api.ts @@ -133,6 +133,11 @@ export class Api extends OAuth2Requester { }; const response = await this._post(options, false); + + if (response.error) { + throw new Error(`[Zoho API] Zoho token exchange failed: ${response.error}`); + } + await this.setTokens(response); return response; }