This demo application uses the phone number as the primary identifying credentials for a user profile.
It verifies phone numbers using tru.ID SubscriberCheck API, in order to authenticate a user.
It allows the user to authenticate using a magic link when:
- the user is on WiFi
- the user's mobile provider is not covered by tru.ID
Please check the companion blog entry for more information.
- ngrok (so you can receive SubscriberCheck callbacks on your machine)
- tru.ID developer account
ngrok http 3000
npm install
- export the following environment variables (see this file for more info)
export TRU_DATA_RESIDENCY=<tru.ID account data residency>
export TRU_CLIENT_ID=<tru.ID project client id>
export TRU_CLIENT_SECRET=<tru.ID project client secret>
export APP_BASE_URL=<ngrok tunnel url>
node ./src/index.js | npx pino-pretty --ignore reqId
- Visit
<ngrok tunnel url>/guest-house
- Raise an issue that explains the improvement/fix you want to make
- Fork the project
- Submit a PR