Skip to main content
Home

SimpleWebAuthn for Browsers

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 Score
88%
Published
a week ago (13.1.2)
T
AttestationConveyancePreference
No documentation available
T
AttestationFormat

Values for an attestation object's fmt

I
AuthenticationCredential

The value returned from navigator.credentials.get()

I
AuthenticationResponseJSON

A slightly-modified AuthenticationCredential to simplify working with ArrayBuffers that are Base64URL-encoded in the browser so that they can be sent as JSON to the server.

I
AuthenticatorAssertionResponseJSON

A slightly-modified AuthenticatorAssertionResponse to simplify working with ArrayBuffers that are Base64URL-encoded in the browser so that they can be sent as JSON to the server.

T
AuthenticatorAttachment
No documentation available
I
AuthenticatorAttestationResponseFuture

AuthenticatorAttestationResponse in TypeScript's DOM lib is outdated (up through v3.9.7). Maintain an augmented version here so we can implement additional properties as the WebAuthn spec evolves.

I
AuthenticatorAttestationResponseJSON

A slightly-modified AuthenticatorAttestationResponse to simplify working with ArrayBuffers that are Base64URL-encoded in the browser so that they can be sent as JSON to the server.

T
AuthenticatorTransport
No documentation available
T
AuthenticatorTransportFuture

A super class of TypeScript's AuthenticatorTransport that includes support for the latest transports. Should eventually be replaced by TypeScript's when TypeScript gets updated to know about it (sometime after 4.6.3)

T
Base64URLString

An attempt to communicate that this isn't just any string, but a Base64URL-encoded string

f
base64URLStringToBuffer

Convert from a Base64URL-encoded string to an Array Buffer. Best used when converting a credential ID from a JSON string to an ArrayBuffer, like in allowCredentials or excludeCredentials

f
browserSupportsWebAuthn

Determine if the browser is capable of Webauthn

f
browserSupportsWebAuthnAutofill

Determine if the browser supports conditional UI, so that WebAuthn credentials can be shown to the user in the browser's typical password autofill popup.

f
bufferToBase64URLString

Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various credential response ArrayBuffers to string for sending back to the server as JSON.

T
COSEAlgorithmIdentifier
No documentation available
T
CredentialDeviceType

The two types of credentials as defined by bit 3 ("Backup Eligibility") in authenticator data:

I
Crypto

Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.

f
platformAuthenticatorIsAvailable

Determine whether the browser can communicate with a built-in authenticator, like Touch ID, Android fingerprint scanner, or Windows Hello.

I
PublicKeyCredentialCreationOptionsJSON

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

I
I
PublicKeyCredentialDescriptorFuture

A super class of TypeScript's PublicKeyCredentialDescriptor that knows about the latest transports. Should eventually be replaced by TypeScript's when TypeScript gets updated to know about it (sometime after 4.6.3)

I
PublicKeyCredentialFuture

A super class of TypeScript's PublicKeyCredential that knows about upcoming WebAuthn features

T
PublicKeyCredentialHint

Categories of authenticators that Relying Parties can pass along to browsers during registration. Browsers that understand these values can optimize their modal experience to start the user off in a particular registration flow:

T
PublicKeyCredentialJSON
No documentation available
I
PublicKeyCredentialParameters
No documentation available
I
PublicKeyCredentialRequestOptionsJSON

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

I
PublicKeyCredentialRpEntity
No documentation available
T
PublicKeyCredentialType
No documentation available
I
PublicKeyCredentialUserEntity
No documentation available
I
RegistrationCredential

The value returned from navigator.credentials.create()

I
RegistrationResponseJSON

A slightly-modified RegistrationCredential to simplify working with ArrayBuffers that are Base64URL-encoded in the browser so that they can be sent as JSON to the server.

T
ResidentKeyRequirement
No documentation available
f
startAuthentication

Begin authenticator "login" via WebAuthn assertion

T
StartAuthenticationOpts
No documentation available
f
startRegistration

Begin authenticator "registration" via WebAuthn attestation

T
StartRegistrationOpts
No documentation available
T
UserVerificationRequirement
No documentation available
T
WebAuthnCredential

Public key credential information needed to verify authentication responses

c
WebAuthnError

A custom Error used to return a more nuanced error detailing why one of the eight documented errors in the spec was raised after calling navigator.credentials.create() or navigator.credentials.get():

T
WebAuthnErrorCode
No documentation available

New Ticket: 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.