The JWT app type will be deprecated in June, 2023. We recommend that you create Server-to-Server OAuth or OAuth apps to replace the functionality of a JWT app in your account. Additionally, if you are using a JWT app type for the Meeting SDK for Web, you should migrate to an SDK app type instead.
The primary goal of this repository is to serve as an example for generating a Zoom Server-to-Server Oauth Token (valid 1hr). Running this project successfully will copy your access_token to the clipboard for quick usage as well as print the scopes associated with the token. Before proceeding, please ensure you've created a Server-to-Server app type in the Zoom Marketplace to gather the required credentials.
git clone https://github.com/zoom/Server-to-Server-Oauth-Token.git
- Enter project directory
cd Server-to-Server-Oauth-Token
- Install project dependencies
npm install
- Required environment variables are as follows:
ZOOM_ACCOUNT_ID=xxxxxxxxxxx
ZOOM_CLIENT_ID=xxxxxxxxxxxx
ZOOM_CLIENT_SECRET=xxxxxxxxxxx
These can be found once you create a Server-to-Server app type in https://marketplace.zoom.us/. Upon first run, you will be prompted for these values if they are not already in your environment.
node s2s.js
Your Zoom Access Token should now be copied to your clipboard and displayed in the terminal. Printed below your access_token, you'll also see the scopes associated with the token. If you enter incorrect Zoom credentials, delete your .env file and run the script again. All Zoom Server-to-Server tokens are valid for 1 hour. When your token expires, just run the script again to generate a new one!
If you're looking for help, try Developer Support or our Developer Forum. Priority support is also available with Premier Developer Support plans.