sahat / hackathon-starter

A boilerplate for Node.js web applications
MIT License
34.88k stars 8.18k forks source link

Using env file to save SMS phone number for Twilio #1191

Closed frankgdeng closed 1 year ago

frankgdeng commented 2 years ago

It is better keeping Twilio account's phone number in the env file than 'hard code' in api.js

YasharF commented 1 year ago

Instead of putting the number in the configs, you may want to just read it from the API and provide it to the user. Note that you may need to provide the user with a choice (i.e. a drop down) if the user has multiple phone numbers in their Twilio account. See https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource for additional documentation.