This is a sample React application that you can run to play around with this library. It allows you to sign in with magic links and FIDO2 (Face ID / Touch).
Prerequisites:
- You have NodeJS installed
- You have deployed the CDK Back End
Steps to run the web app locally:
- Copy file
.env
to.env.local
and then edit.env.local
and enter all fields. View the right values to enter here, in the Back End's CDK stack outputs. - Make sure to install all dependencies:
npm install
- Run
npm run dev
- The web application runs at http://localhost:5173/
Steps to deploy the web app to S3 (served by CloudFront):
- Execute:
./deploy-spa.cjs
- The CloudFront URL where your web app runs is in one of the Back End's CDK stack outputs:
SpaUrl
.