WebAuthn with Architect
This is a simple example of how to use WebAuthn with Architect. It's a barebones web app that allows you to register and authenticate with WebAuthn APIs.
This is a pretty vanilla Architect application. Not an Enhance app... yet!
Here's a quick look at the routes in the app.arc
manifest:
@http
get / # HTML forms
post /register/options # HTML for generateRegistrationOptions
post /register/verify # JSON to verifyRegistrationResponse
post /authenticate/options # HTML for generateAuthenticationOptions
post /authenticate/verify # JSON to verifyAuthenticationResponse
any /logout # delete the session
To run this app locally:
$ npm install
$ npm start