Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Latest commit

 

History

History
 
 

sync-token

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Twilio Sync Token

This Function shows you how to mint Access Token for Twilio Sync. Please note, this is for prototyping purposes only. You will want to validate the identity of clients requesting Access Token in most production applications and set the identity when minting the Token.

IMPORTANT!

Make sure you change the IDENTITY variable in the Function to your needs and verify the identity of the user you are generating the access token for.

Environment variables

This Function expects the following environment variables set:

Variable Meaning Required
API_KEY Twilio API Key. Create one here (https://www.twilio.com/console/runtime/api-keys) Yes
API_SECRET Twilio API Secret corresponding to your API Key Yes
SYNC_SERVICE_SID Twilio Sync Service SID. https://www.twilio.com/docs/api/sync/rest/services Yes

Parameters

This Function doesn't expect any parameters passed.