Zoom CobrowseSDK Auth Sample

Generate a Zoom Cobrowse SDK JWT to join Zoom Cobrowse SDK sessions

Deploy Zoom CobrowseSDK Auth Sample

cobrowsesdk-auth-endpoint-sample

zoom/cobrowsesdk-auth-endpoint-sample

Just deployed

Zoom Cobrowse SDK Auth Endpoint sample

Use of this sample app is subject to our Terms of Use.

This is a Node.js / Express server that generates a Cobrowse SDK JWT via an HTTP request for authorized use of the Zoom Cobrowse SDK.

Usage

Make a POST request to http://localhost:4000 (or your deployed url) with the following request body:

PropertyTypeRequired?Validation Rule(s)
rolenumberYes- Required
- Must equal to 1 or 2
expirationSecondsnumberNo- Must be between 1800 (30 minutes) and 172800 (48 hours) seconds
userIdstringNo- Please ensure that the user ID is not repeated within a session
userNamestringNo

> Note: userId is required to create a JWT, if not provided a random string will be used.

Example Request

POST http://localhost:4000

Request Body:

{
  "role": 1,
  "userId": "user123",
  "userName": "ekaansh"
}

If successful, the response body will be a JSON representation of your token:

{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfa2V5IjoiM2YzV0pkZ0FTZC0xN1VZTl9ZSmFQQSIsInJvbGVfdHlwZSI6MCwiaWF0IjoxNzI5MTU5MDkyLCJleHAiOjE3MjkxNjYyOTIsInVzZXJfaWQiOiJ1c2VyMTIzIn0.cVMgCnb5fJzhGr2nTowlYWojAdYiH2INMUhh5v2WTos"
}

In the Cobrowse SDK, for the agent you can pass in the token to the ACCESS_TOKEN in your iframe.


Template Content

cobrowsesdk-auth-endpoint-sample

zoom/cobrowsesdk-auth-endpoint-sample

More templates in this category

View Template

Foundry Virtual Tabletop

A Self-Hosted & Modern Roleplaying Platform


View Template

(v1) Simple Medusa Backend

Deploy an ecommerce backend and admin using Medusa


View Template

peppermint

Docker-compose port for peppermint.sh