An example application that forces users to enroll in passwordless email and sms verification before allowing them to login to the primary application
There are two applications in this example.
/login-client - Sample Auth0 react app
/enrollment-client - An application which sends and allows users to enter TOTP codes using Auth0 Passwordless
Because we want to run two different apps locally, its easiest if we create two different hosts locally
/etc/hosts
create two new hosts pointing to 127.0.0.1 (eg.login-client
andenrollment-client
)- Edit
login-client/src/Auth/auth0-variables.js
and fill in the blanks - Edit
enrollment-client/.env
and fill in the blanks. - Edit
enrollment-client/package.json
and change theproxy
domain to what your using - Open two terminals
- In one of the terminals
cd ./login-client
yarn install
yarn start
In the other terminal
cd ./enrollment-client
yarn install
yarn start
In a browser, go to http://login-client:3000/