Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 800 Bytes

README.md

File metadata and controls

19 lines (13 loc) · 800 Bytes

International telephone input validation

This project will show you one way to validate phone number inputs with the intl-tel-input library and Twilio's Lookup API. For a production use case we recommend adding phone verification, which is a best practice for collecting phone numbers from your users in order to make sure they have control of the number.

Installing

Create a .env file and add your environment variables found in the Twilio console

cp .env.example .ev

Then install the dependencies and run with npm:

npm install
npm start

Navigate to http://localhost:3000/index.html