Introducing the new Zoom Community Champion Program where we recognize our most engaged community members for their contributions.

Learn more and join
cancel
Showing results for 
Search instead for 
Did you mean: 

Zoom API Oauth | Error: unsupported_grant_type

Samarth_Opt
Listener

When making request to get Access Token, I'm always getting unsupported_grant_type Error.

Please help me to know where I'm going wrong..

 

Code: 

  axios.post(
        "https://zoom.us/oauth/token",
        {
         grant_type:'authorization_code',
         code: req.query['code'],
         redirect_uri: '<RedirectUri>'
        },{
        headers:{
        Authorization: 'Basic ' + Buffer.from('<CLIENT_ID>' + ':' +  
                 '<CLIENT_SECRET>').toString('base64'),
       'Content-Type': 'application/x-www-form-urlencoded',
       } 
}).then((rs:any)=>{
   console.log(rs);
})
.catch((err:any)=>{console.log(err);})

 

Logs:

    data: {
      reason: 'unsupported grant type',
      error: 'unsupported_grant_type'
    }
4 REPLIES 4

aweston
Listener

I'm getting the same grant type error from this call, did you ever figure this out?

Thanks

--Andy

Hello, I'm experiencing the same issue, did you figure it out ? Thanks

Hi, yes, I got this working, my code looks like the above but it also has a "code_verifier" .

See github.com/zoom/zoomapps-sample-js

So, PKCE ("code_challenge" & "code_verifier") is unavoidable 😕