Skip to content

Instantly share code, notes, and snippets.

View gordnh's full-sized avatar
:shipit:

Gordon Huang gordnh

:shipit:
View GitHub Profile
@gordnh
gordnh / token.js
Created February 17, 2023 05:33
Twilio serverless function for Video Call in Canva FE prototype
/**
* Any environment variables set in .env are available on the context object.
* Any URL parameters passed on an API call to a Twilio Function are available on the event object.
* @param {*} context
* @param {*} event
* @param {*} callback
*/
exports.handler = function(context, event, callback) {
const twilioAccountSid = context.ACCOUNT_SID;