Skip to content
Advertisement

Tag: twilio

How to check if a twilio token is expired

I have a nextjs project and I need to verify if a twilio token is expired or not. I thought about using the library jwt-decode to decode the token and take the exp attribute from it, then compare it to the actual date. The problem is that the exp date seems to be broken because it is always in 1970.

Sending alert messages to multiple whatsapp users using Twilio?

I need to send whatsapp messages to multiple phone numbers using node.js.I am using the twilio Api to achieve this.I signed up in twilio,followed the steps and used my mobile number for the sandbox.I used the code in node.js application,it worked with my whatsapp number,but not with other phone numbers.Is there anything to deal with a trail version?? Or Is

Twilio Programmable Video – Disabled videos for certain participants, camera permission is still requested

I am implementing a seminar application with twilio programmable video. The scenario can be described as following: 1 host lectures n participants. The participants can participate only via audio but can see the hosts video. I accomplished that by simply unpublishing and disabling the videostreams of the participants: The problem is, that the participants, although not publishing any video, are

Enable CORS from a Node.JS Callback Function

I’m attempting to use Twilio Functions to handle token generation for my Twilio application. I previously was using a Node.js + Express Server to accomplish this, but I do not know how to figure out enable CORS in this type of environment. My Client Code looks like this: My function code looks like this: }; Worth noting, the console.log proves

Advertisement