Passkeys/WebAuthn
Overview
This package developed in order to simplify the amount of work needed to implement WebAuthn into your website.
Installation
After pulling down the code, set up dependencies:
npm install @ownid/webauthn
Usage
Create passkey/webauthn credentials
import {fido2Create} from "@ownid/webauthn"
.
.
.
const data = await fido2Create(publicKey, username);
Get passkey/webauthn credentials
import {fido2Get} from "@ownid/webauthn"
.
.
.
const data = await fido2Get(publicKey, username);