Skip to content

Instantly share code, notes, and snippets.

View jared-cxz's full-sized avatar

Jared CXZ jared-cxz

  • Connexion Media Ltd.
View GitHub Profile
@jared-cxz
jared-cxz / multipass.js
Last active November 7, 2015 19:22 — forked from tstachl/multipass.js
A multipass example written for Node.js.
var crypto = require('crypto')
// site name is your desk.com subdomain
, siteName = 'site_name'
// site url is your full custom url, like https://support.yourcompany.com
, siteUrl = 'site_url'
// api key is generated here: https://your_subdomain.desk.com/admin/channels/support-center/auth_settings
, apiKey = 'multipass_token'
, data = JSON.stringify({
uid: '19238333',