Refresh token endpoint not working


API Endpoint(s) and/or Zoom API Event(s)

/oauth/token

Description

Hi,

I’m experiencing an error where when issuing a request to refresh a token I get an invalid client id message. I know this is the correct client id because I’m using the same client id/secret for other requests (like initial oauth) that work.

Details below:

{‘reason’: ‘Invalid client_id or client_secret’, ‘error’: ‘invalid_client’}

Error?

ERROR Failed to refresh access token: {‘reason’: ‘Invalid client_id or client_secret’, ‘error’: ‘invalid_client’}

How To Reproduce

*1. Request URL / Headers

INFO ### ZOOM REQUEST HEADERS: {‘Authorization’: ‘Basic my_bas64_client_id_and_client_secret’, ‘Content-Type’: ‘application/x-www-form-urlencoded’} ###

INFO ### ZOOM REQUEST PAYLOAD: {‘grant_type’: ‘refresh_token’, ‘refresh_token’: ‘my_refresh_token’} ###

2. Authentication method or app type

headers

3. Any errors

ERROR Failed to refresh access token: {‘reason’: ‘Invalid client_id or client_secret’, ‘error’: ‘invalid_client’}

I’m not sure how to close this issue but I figured it out - I wasn’t setting my client secret properly.