Requirements:
- Node version 10.19.0 or later (check version in your terminal with
node -v
). - A Twilio account.
- A Flex project. Create a Flex project in the console.
- A Verify service. Create a new Verify service in the console.
- The Twilio CLI. Install the CLI for your operating system and login with your Flex account credentials using twilio login.
- The Twilio serverless plugin. Install from the command line with
twilio plugins:install @twilio-labs/plugin-serverless
. More details in the docs. - The Twilio Flex plugin. Install from the command line with
twilio plugins:install @twilio-labs/plugin-flex
. More details on GitHub.
After cloning this repository, install dependencies with npm
:
npm install
Copy the serverless config example and fill in the ACCOUNT_SID
, AUTH_TOKEN
, and VERIFY_SERVICE_SID
:
cp serverless/.env.serverless.example serverless/.env
Deploy the functions with the Twilio CLI:
twilio serverless:deploy
Save the function URLs that display with the deployment details
Copy the.env.example in the project root to .env:
# in the project root
cp .env.example .env
Update the REACT_APP_SERVICE_BASE_URL to be your new function url.
REACT_APP_SERVICE_BASE_URL="http://verify-plugin-1234-dev.twil.io"
twilio flex:plugins:start
twilio flex:plugins:deploy
- "INFO" tab marker shows (even though it's empty) when the user is not verified
- fix "INFO" tab marker
- automatic authentication before the call is accepted - use DTMF to input code (WIP different plugin)
- add resend button
- add tests
- use material-ui for form input and errors
- maybe: add authentication to Twilio functions
- maybe: add ability for agent to cancel a verification
- maybe: rearchitect with custom actions?
This project adheres to the Twilio Labs Code of Conduct.
This project welcomes contributions. Please check out our contributing guide to learn more on how to get started.
MIT © Twilio Inc.