Skip to content

gioragutt/gg-twilio-verification-poc-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is POC of using the twilio API

See .env.example for required environment variables

Usage

run server with npm start

Example messages

curl --request POST \
  --url http://localhost:3000/api/v1/sendCode \
  --header 'content-type: application/json' \
  --data '{
	"phone": "Y0UR4H0N3",
	"countryCode": "972"
}'

wait for sms here

curl --request POST \
  --url http://localhost:3000/api/v1/verifyCode \
  --header 'content-type: application/json' \
  --data '{
	"phone": "Y0UR4H0N3",
	"countryCode": "972"
	"code": "CODE FROM SMS HERE!"
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published