Skip to main content

TypeScript types used by the @simplewebauthn series of libraries

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
88%
Published
4 months ago (12.0.0)
interface PublicKeyCredentialCreationOptionsJSON

A variant of PublicKeyCredentialCreationOptions suitable for JSON transmission to the browser to (eventually) get passed into navigator.credentials.create(...) in the browser.

This should eventually get replaced with official TypeScript DOM types when WebAuthn L3 types eventually make it into the language:

https://w3c.github.io/webauthn/#dictdef-publickeycredentialcreationoptionsjson

Properties

Add Package

deno add jsr:@simplewebauthn/types

Import symbol

import { type PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/types";

---- OR ----

Import directly with a jsr specifier

import { type PublicKeyCredentialCreationOptionsJSON } from "jsr:@simplewebauthn/types";

Add Package

npx jsr add @simplewebauthn/types

Import symbol

import { type PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/types";

Add Package

yarn dlx jsr add @simplewebauthn/types

Import symbol

import { type PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/types";

Add Package

pnpm dlx jsr add @simplewebauthn/types

Import symbol

import { type PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/types";

Add Package

bunx jsr add @simplewebauthn/types

Import symbol

import { type PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/types";