Cookies issue when performing auth

Hello devs, I am creating a Zoom application that basically renders an iframe. The issue I am having is, that when I perform auth to my server, my server sets 2 HttpOnly cookies, which is not getting set in some cases, sometimes cookies get set and everything goes well, but sometimes cookies are not setting set, which fails the auth to my server, what is the major issue with Zoom client browser and cookies and how to fix this issue?

I’m sorry to hear that you’re having issues with cookies in your Zoom App. It sounds like the cache may be clearing periodically.

How often are you seeing that the cookies are not set? Is it at random or does it seem to be at an interval?

Hey @MaxM , thanks for your reply, and answer to your question is random, by the way, I have found an alternative for that issue, but am having problem with getting the access token, I used callZoomAPI method from js zoom SDK, and in event handler, I received some code, redirect_uri, state, timestamp, Now I send this data to my backend and call token API of Zoom, with clientID:clientSecret base 64 in Basic header, and code from event data, grant_type as authorization_code, redirect_uri receveied from event data and code_challenge I used when calling callZoomAPI method. Still, I received data: { reason: ‘Invalid authorization code’, error: ‘invalid_grant’ } This error, code is the one received from event data only! Really having a bad experience with Zoom SDK ! Hope for a quick reply! :slightly_smiling_face:

Glad you found a workaround! It seems the code you’re sending to get the access token might be incorrect. Double-check it matches the one received in the event data exactly. Also, ensure code_challenge matches the one used in callZoomAPI.

Everything is correct, I have tried multiple times.

Understood. Since you’ve verified everything seems correct,

Check Zoom API Documentation:
Double-check the Zoom API documentation for the callZoomAPI method and access token endpoint. Ensure you’re using the exact parameters and format required.

Verify Backend Logic:
Review your backend code handling the data from the Zoom event. Look for any potential errors in processing or sending data (e.g., typos, incorrect encoding).

Zoom Developer Support:
If the above doesn’t help, consider reaching out to Zoom Developer Support directly. They can provide more specific guidance based on your code and setup.

Hello, looks like I am having issue with codeChallenge, see what I am doing is,

  1. I call ‘callZoomApi’ method, with a string something like ‘secretCode’ as codeChallenge. (Which I think is real issue.)
  2. Now I get code, timestamp, redirect_uri in onAuthrised event callback, now I send this to my backend and my backend call the Zoom API and I get that error.

So basically what this codeChallenge is, how to get its values ? And how the flow exactly is ? Can you please describe ? Like from what to do in frontend (react app) and what to do in backend (node) ?

Same request to you too @MaxM ?

1 Like