https://github.com/zoom/server-to-server-oauth-token
Utility script to generate a Zoom Server-to-Server Oauth Token and copy to clipboard
https://github.com/zoom/server-to-server-oauth-token
Last synced: 9 months ago
JSON representation
Utility script to generate a Zoom Server-to-Server Oauth Token and copy to clipboard
- Host: GitHub
- URL: https://github.com/zoom/server-to-server-oauth-token
- Owner: zoom
- License: mit
- Created: 2022-08-24T18:48:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T21:26:31.000Z (over 2 years ago)
- Last Synced: 2025-04-14T21:53:12.664Z (11 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 13
- Watchers: 11
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Zoom Server-to-Server (s2s) Oauth Token Generation
**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](https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/) (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](https://marketplace.zoom.us/) to gather the required credentials.
## Installation
`git clone https://github.com/zoom/Server-to-Server-Oauth-Token.git`
## Setup
1. Enter project directory
`cd Server-to-Server-Oauth-Token`
2. Install project dependencies
`npm install`
3. 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.

## Usage
`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!
## Need help?
If you're looking for help, try [Developer Support](https://devsupport.zoom.us) or our [Developer Forum](https://devforum.zoom.us). Priority support is also available with [Premier Developer Support](https://zoom.us/docs/en-us/developer-support-plans.html) plans.