import twilio from 'twilio'; const accountSid = process.env.TWILIO_ACCOUNT_SID; const authToken = process.env.TWILIO_AUTH_TOKEN; const sendSMS = (phone, message) => { const client = twilio(accountSid, authToken); console.log(phone, message); client.messages .create({ body: message, from: process.env.TWILIO_PHONE_NUMBER, to: phone, }) .then((message) => console.log(message.sid)); }; export default sendSMS;