Hi!
We are getting an API issue In Zoom.
We are using the OAuth2.0 to Authenticate the Zoom with our application. There sometimes when we trying to Authenticate Zoom we are getting a 400 status. This thing happen when we trying to get the Token first time by passing the CODE
which sent from Zoom.
Description
In fist time we going to Authenticate Zoom with our application it going to work, Then we disconnect it ( remove the previous authenticate credentials ) and going to authenticate again, In this time when passing the CODE to get the Token, we are getting 400 status from the ZOOM API. Even we tried multiple times this 400 status coming again and again.
After Sometime passed (1hr or more) then again we going to Authenticate it going to work without any issue.
This thing happen again and again, we didn’t able to find the root case for this issue.
Error
400 Bad Request.
( Not getting more error info to get an Idea )
API Endpoints
URL use to get the CODE
`https://zoom.us/oauth/authorize?response_type=code&client_id=${client_id}&redirect_uri=${encode(redirectURL)}`;
After getting the CODE, we making the Initial Req to get Access-Token.
Req-Type: [POST]
host = "zoom.us"
path = "/oauth/token"
// Req Header
headers = {
Accept: 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
Authorization: `Basic ${(Buffer.from(`${client.client_id}:${client.client_secret}`)).toString('base64')}`,
},
//Req Body
body = {
code: initCode,
redirect_uri: redirectURL,
grant_type: 'authorization_code',
}