Skip to content

robinske/intl-tel-input-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .env

Then install the dependencies and run with npm:

npm install
npm start

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