0.1.2 • Published 3 months ago

mock-webauthn v0.1.2

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

mock-webauthn

A lightweight Node.js (and browser) mock WebAuthn authenticator.

This module allows testing WebAuthn relying party client or server implementations without requiring a real FIDO2/Webauthn authenticator.

What is a webauthn relying party and authenticator?

Passkeys are the most mainstream WebAuthn implementation for consumers.

WebAuthn is a W3C web standard for passwordless authentication and it's also implemented by mobile platforms like iOS and Android.

The key concepts are illustrated in the diagram below:

  • The relying party is an app or website that wants to authenticate a user.

  • The relying party server is the server-side component of the relying party.

  • An authenticator generates a public/private key pair and stores the private key.

  • The public key is registered with a relying party server.

webauthn

This library mocks the authenticator.

Alternatives

Chrome DevTools

You can emulate a WebAuthn authenticator using Chrome:

webauthn-mock (golang)

webauthn-mock is a golang library for the same/similar purpose.

  • it only seems to support the attestion flow
  • it had no new commits since May 2024.
0.1.2

3 months ago

0.1.1

4 months ago

0.1.0

4 months ago