Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Node.js, Deno, Browsers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score94%
Downloads210/wk
Published3 months ago (13.2.2)

SimpleWebAuthn for Browsers

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

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@simplewebauthn/browser

Import symbol

import { type PublicKeyCredentialCreationOptionsJSON } from "@simplewebauthn/browser";
or

Import directly with a jsr specifier

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

Add Package

pnpm i jsr:@simplewebauthn/browser
or (using pnpm 10.8 or older)
pnpm dlx jsr add @simplewebauthn/browser

Import symbol

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

Add Package

yarn add jsr:@simplewebauthn/browser
or (using Yarn 4.8 or older)
yarn dlx jsr add @simplewebauthn/browser

Import symbol

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

Add Package

vlt install jsr:@simplewebauthn/browser

Import symbol

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

Add Package

npx jsr add @simplewebauthn/browser

Import symbol

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