Coder Social home page Coder Social logo

zamd / auth0-force-passwordless-enrollment-ex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danielbaker/auth0-force-passwordless-enrollment-ex

0.0 2.0 0.0 230 KB

HTML 12.55% JavaScript 82.00% CSS 3.76% Dockerfile 0.79% PowerShell 0.41% Shell 0.50%

auth0-force-passwordless-enrollment-ex's Introduction

auth0-force-passwordless-enrollment-ex

Description

An example application that forces users to enroll in passwordless email and sms verification before allowing them to login to the primary application

Structure

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

Installation

Because we want to run two different apps locally, its easiest if we create two different hosts locally

  1. /etc/hosts create two new hosts pointing to 127.0.0.1 (eg. login-client and enrollment-client)
  2. Edit login-client/src/Auth/auth0-variables.js and fill in the blanks
  3. Edit enrollment-client/.env and fill in the blanks.
  4. Edit enrollment-client/package.json and change the proxy domain to what your using
  5. Open two terminals
  6. In one of the terminals
cd ./login-client
yarn install
yarn start

In the other terminal

cd ./enrollment-client
yarn install
yarn start

See it in action

In a browser, go to http://login-client:3000/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.