Stars: 446
Forks: 29
Pull Requests: 0
Issues: 2
Watchers: 9
Last Updated: 2021-05-26 23:15:23
Phone verification at no cost
License:
Languages: PHP, TypeScript, CSS, Shell
Phone verification at no cost!
Well, not really. You still have to pay Twilio for the phone numbers ($1 per month each).
A lot of peoples have pointed out that phone number can be spoofed, so this can't be used as a form of secure authentication. More discussions here: https://news.ycombinator.com/item?id=11652454
I stumbled this page in Twilio API documentation while working on some other idea.
The
<Reject>
verb rejects an incoming call to your Twilio number without billing you. This is very useful for blocking unwanted calls.
Noted that Twilio will trigger webhook for any incoming phone call if you set the Status Callback URL. So I thought this can be used for phone verification, with no additional cost.
http://dial2verify-twilio.sulai.mn/
.env.sample
content to .env
TWILIO_SID=
TWILIO_TOKEN=
MOBILE_ONLY=false # set to true if you want to accept verification from mobile number only
APP_URL=http://your-site.com
composer install
php artisan migrate && php artisan twilio:setup
cd public/ && npm install && npm run tsc
Licensed under the MIT license