Node.js Zoom API: invalid authorization code

Using this template helps us debug your issues more effectively :slight_smile:

Description
0

I have an application that I use to connect the user to the Zoom MarketPlace, according to this guide: https://marketplace.zoom.us/docs/guides/auth/oauth
After the user redirect back to my page, and I do the installation, everything works OK. The problem is, when the user click on the Connect button, redirect back to my page with “code” parameter in the query string, wait about 10 minutes, and only then try to install the Zoom on the server: I get the following error: “error: invalid_request, reason: Invalid authorization code”.
I don’t see anything related to any expiration time of the “code” parameter in the query string inside the Zoom documentation.

Error
“error: invalid_request, reason: Invalid authorization code”.

Does the “code” parameter returned from the Zoom Callback has expiration time?
Thanks!

Hey @orassayag,

Thank you for reaching out to the Zoom Developer Forum. I’ve reached out to our engineering team to confirm the behavior here. I’ll let you know when I hear back from them.

(ZOOM-301744)

Thanks,
Max

Hi, it’s been a month since I asked the question, is there any developments? thanks.

Hey @orassayag,

My apologies for the delay here, the authorization code will expire in 5 minutes which is why you’re seeing this issue after a 10 minute delay.

Let me know if that helps.

Thanks,
Max

Thanks for the reply, I would suggest adding this information in your documentation. Either way I changed the logic to fetch the token immediately when redirected back. Thanks for the help!