Skip to content

jmcomby/webauthn-node

Repository files navigation

Webauthn demo server node typescript

Webauthn demo server in typescript based on the FIDO Alliance javascript demo

Installing / Getting started

You can quickly start the server by running

git clone https://github.com/jmcomby/webauthn-node.git
cd webauthn-node/
npm install
npm run tsc
node build/app.js

Initial Configuration

The adresse of the server and port are located in the config.json. Keep in mind that webauthn works only with https except for localhost!

Developing

If you are using Docker & Visual Studio Code (with the extension Remote - Container, ext install ms-vscode-remote.remote-containers), open the project inside the container. Everything is ready for debugging inside the container.

git clone https://github.com/jmcomby/webauthn-node.git
cd webauthn-node/
npm install

Open with your favorite editor.

Building

Build the typescript into javascript

npm run tsc

This command will create a "build" directory in the root of your project.

Deploying

Now you can start the server node

node build/app.js

By default, the server will serve the static small website (static folder) and be ready to authentify using WebAuthn. Navigate to http://localhost:3000

Features

  • Minimal server for Web Authentication using node & typescript.
  • Safari Mac OS Touch ID supported
  • Android Chrome Fingerprint supported

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Links

Licensing

You just DO WHAT THE FUCK YOU WANT TO.

About

Webauthn demo server in typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published