Based off https://github.com/feathersjs/feathers-chat 2019-04-06. The goal of this repo is to provide a proof of concept for a user registration via phone number. Phone number is the primary key and we verify control of the number by sending a pin via sms and verifying the user after the pin is sent to the api. Work in progress.
npm installcp .env.template .envand add your Twilio secretsnpm run devfor nodemon ornpm startfor production
There are some curl requests in /curls. They typically pipe responses to jq so
install that for more readable responses.
brew install jqsh user-create.sh 5005550006creates an unverified user and sends an smssh user-read.shlists users, you can get the pin number by reading thissh user-verify.sh <pin number>verifies the user
- issue jwt to verified users
- enforce authorization by jwt and verified user accounts