{ "reason": "Invalid authorization code", "error": "invalid_grant" }

Zoom Apps Configuration
I’m working on an app for Zoom that uses the Zoom SDK. The app is in React.js.

Description
I’ve updated the domain of the app URL and updated the domain in all the places it’s requested. In the app that uses the Zoom SDK, I’m able to get the code and send it to the BE, but I get the following error:

{“reason”: “Invalid authorization code”, “error”: “invalid_grant” }

from the endpoint:

https://zoom.us/oauth/token?code=2bJR7MRv61TLpWu8pLIQKaLlaGMqPBDWg&grant_type=authorization_code

  • headers of authentication with the Basic …

Here’s an example.

Using the code returned by the browser when using the local “Copy Authorization URL to Share” test, the endpoint works perfectly.

I have another app that we didn’t make any changes to and the same issue occurs.

I have checked the client_id, secret and redirect URL, scopes and everything is correct.

I added the app to Zoom using the marketplace and had no issues.

Can you give me some feedback on why?

hi @Joao1
Thanks for reaching out to us and welcome to the Zoom Developer Forum.
Are you still facing this issue?
Can you please pass the redirect uri in your request and try again?

POST https://zoom.us/oauth/token?grant_type=authorization_code&code=Wk9PTV9BVVRIT1JJWkFUSU9OX0NPREU&redirect_uri=https://example.com

Hello @elisa.zoom
Yes, we still having the issue.

In my configuration, the rediect_uri is for example: https://test.com/ the sdk return the redirect_uri as https://test.com/welcome. And even when i change in the configuration still having the error.
I don’t have use strick mode for redirect urls or subdomain check.

From my tests the error persist when i add the redirect_uri.
Example:
POST https://zoom.us/oauth/token?code=1n0yoAHNm7knEYjj5FNSc6QOh5bfW0Psw&grant_type=authorization_code&redirect_uri=https://test.com/welcome

Can you try adding the path /welcome to your redirect_uri, to make it match

I already add that and receive the same error.

Thanks @Joao1
I am currently looking into this. Other developer reported the same thing and I’m waiting to hear back from our team

Please @elisa.zoom let me know when you have more information because this blocks us.