MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.62k stars 137 forks source link

feat/448-manual-ceremony-cancellation #449

Closed MasterKale closed 1 year ago

MasterKale commented 1 year ago

This PR exposes browser's WebAuthnAbortService as a public API. It can now be imported into projects using this library:

import { WebAuthnAbortService } from '@simplewebauthn/browser';

For projects that need it, a new WebAuthnAbortService.cancelCeremony() method has been added to this service to help projects e.g. with client-side routing that need to cancel a WebAuthn registration or authentication attempt in response to a router navigation event.

Fixes #448.