This repo is example code for my dev.to post Adding an extra level of authentication with Step Up MFA
This directory includes some example code for setting up an Express and Typescript API with 3 endpoints.
- 1 public
- 1 requiring authentication
- 1 requiring recent MFA authentication
To build and run this navigate to the directory:
- Install dependencies with
npm i
- Start the server with
npm start
A small React application that can be used to access the server. This is built on top of the Create React App. This application knows how to request that Auth0 confront the user with an MFA check before continuing.
To build and run this navigate to the directory:
- Install dependencies with
npm i
- Start the server with
npm start
This directory contains the actions for Auth0. These are written in JavaScript and have no dependencies.
These need to be run from within the Auth0 Actions environment. There is some information for how to create and deploy actions can be found in my post on dev.to Trying out Auth0 Actions to build Conditional MFA.