Skip to main content

Works with
It is unknown whether this package works with Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
JSR Score
76%
Published
2 months ago (0.1.2)

socektauthn-client

@socektauthn/client is the browser client of the @socketauthn packages

JSR JSR Score

socketauthn

The @socketauthn family of packages is a combination of this client and a websocket api.

Compatibility

During Beta: Each minor of a package is compatible with the same minor versions of the other packages of the family. After full release: Each minor and patch version of a major version will be compatible with the same major version of the package family.

Concept

The client calls the registerUser function in the browser. It creates a websocket connection to the api endpoint for the registration. The Server sends a registration config for @simplewebauthn/browser's startRegistration function on open. The client responses when the authentication in finished.

The same applies when logging in.

How to use

This package provides functions that should be executed onopen and onmessage of a websocket connection. Routing, upgrading the connections etc is NOT part of this library. An example can be found in dev_server.ts which is can be run using deno task dev on port 5180. It is compatible with the example of @socketauthn/client

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add @socketauthn/server-core

Import symbol

import * as mod from "@socketauthn/server-core";

Add Package

npx jsr add @socketauthn/server-core

Import symbol

import * as mod from "@socketauthn/server-core";

Add Package

yarn dlx jsr add @socketauthn/server-core

Import symbol

import * as mod from "@socketauthn/server-core";

Add Package

pnpm dlx jsr add @socketauthn/server-core

Import symbol

import * as mod from "@socketauthn/server-core";

Add Package

bunx jsr add @socketauthn/server-core

Import symbol

import * as mod from "@socketauthn/server-core";