Setting the file. One moment.
Subchapter 106.17
concepts/two-roles-pattern.mdMarkdown1 KBView on GitHub
Zoom Cobrowse uses two roles:
role_type=1: customer sessionrole_type=2: agent sessionUse separate JWTs for each role and keep token generation on the server.
In most real implementations, you create these objects in order:
session_idactive/revoked)role_type=1)
role_type=2)
In practice, the PIN you should hand to agents is the value emitted by customer SDK event:
session.on("pincode_updated", ...)Do not rely on placeholder/provisional PIN values from pre-start backend records for user-facing flows. Always show one clearly labeled PIN in UI (for example, “Support PIN”) and reuse that same value in agent links.
POST /api/customer/start -> create session + customer token + PINPOST /api/agent/connect -> validate PIN + issue agent tokenPOST /api/session/revoke -> end sessionGET /api/session/list -> operational visibilitySee: