npm.io
0.6.0 • Published 11 months ago

@turnkey/webauthn-stamper

Licence
Apache-2.0
Version
0.6.0
Deps
1
Size
49 kB
Vulns
0
Weekly
0
Stars
100

title: "WebAuthn Stamper"

@turnkey/webauthn-stamper

npm

This package contains functions to stamp a Turnkey request. It is meant to be used with @turnkey/http

Usage:

import { WebauthnStamper } from "@turnkey/webauthn-stamper";
import { TurnkeyClient } from "@turnkey/http";

const stamper = new WebAuthnStamper({
  rpId: "example.com",
});

// New HTTP client able to sign with passkeys!
const httpClient = new TurnkeyClient(
  { baseUrl: "https://api.turnkey.com" },
  stamper,
);

Keywords