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