Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morenoh149/feathers-chat-phone-signup-sms
https://github.com/morenoh149/feathers-chat-phone-signup-sms
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/morenoh149/feathers-chat-phone-signup-sms
- Owner: morenoh149
- License: mit
- Created: 2019-04-06T21:17:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-21T01:39:45.000Z (over 5 years ago)
- Last Synced: 2024-08-03T18:14:08.286Z (3 months ago)
- Language: CSS
- Size: 91.8 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-feathersjs - Feathers Chat + Phone Signup SMS pin
README
# feathers-chat-phone-signup-sms
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.## Running
1. `npm install`
1. `cp .env.template .env` and add your Twilio secrets
1. `npm run dev` for nodemon or `npm start` for production## Testing
There are some curl requests in /curls. They typically pipe responses to `jq` so
install that for more readable responses.1. `brew install jq`
1. `sh user-create.sh 5005550006` creates an unverified user and sends an sms
1. `sh user-read.sh` lists users, you can get the pin number by reading this
1. `sh user-verify.sh ` verifies the user## TODO
* issue jwt to verified users
* enforce authorization by jwt and verified user accounts