Skip to content

Twilio Verify example using NodeJS, TypeScript, VueJS, and Docker.

Notifications You must be signed in to change notification settings

jorgevrgs/twilio-verify-example

Repository files navigation

Twilio Verify

App to register and log in an user using the Twilio Verify service. See it in action below:

Docker without MFA

Local with MFA

Getting Started

Env Files

Generate the env files:

npm run init:env

This command create a dummy .env.local and .env.docker file.

Edit the content of the .env.* file before starting the server.

Serve

Find below two options to start a server: Docker and Local. After starting the server, it is possible to access the user interfaces: Frontend and Backend.

Docker

Start the containers:

npm run build # optional to build the container
npm start     # starts the database, backend, and frontend

Local

Alternatively, it's possible to lift the servers locally using an external connection to MongoDB.

npm run local

## Future

  • [security] Move both session and connection strings to AWS SSM or Secrets Manager
  • [improvement] Validate login form before creating a verification request
  • [feature] Add Verify Push
  • [feature] Activate Swagger