Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.01 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.01 KB

cartoon padlock

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.

Run this app

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