Skip to content

architect-examples/arc-example-webauthn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple webauthn implementation with Architect

Resources

Stars

Watchers

Forks