# @simplewebauthn/types

> TypeScript types used by the @simplewebauthn series of libraries

Latest version **12.0.0** (published 2024-11-25) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @simplewebauthn/types
pnpm add @simplewebauthn/types
yarn add @simplewebauthn/types
bun add @simplewebauthn/types
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 12.0.0 |
| Published | 2024-11-25 |
| First published | 2024-01-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2397 |
| Author | Matthew Miller |
| Maintainers | iamkale |
| Keywords | typescript, webauthn, passkeys, fido, types |

## Links

- npm: https://www.npmjs.com/package/@simplewebauthn/types
- Repository: https://github.com/MasterKale/SimpleWebAuthn
- Homepage: https://github.com/MasterKale/SimpleWebAuthn/tree/master/packages/types#readme
- Issues: https://github.com/MasterKale/SimpleWebAuthn/issues
- npm.io page: https://npm.io/package/@simplewebauthn/types

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 12.0.0 (latest) — 2024-11-25
- 11.0.0-alpha3 — 2024-11-23
- 11.0.0 — 2024-10-13
- 10.0.0 — 2024-04-12
- 9.0.1 — 2024-01-26
- 9.0.0 — 2024-01-21

## README

# SimpleWebAuthn <!-- omit in toc -->

![WebAuthn](https://img.shields.io/badge/WebAuthn-Simplified-blueviolet?style=for-the-badge&logo=WebAuthn)
[![npm (scoped)](https://img.shields.io/npm/v/@simplewebauthn/server?style=for-the-badge&logo=npm)](https://www.npmjs.com/search?q=simplewebauthn)
[![JSR Scope](https://jsr.io/badges/@simplewebauthn?style=for-the-badge)](https://jsr.io/@simplewebauthn)

- [Overview](#overview)
- [Installation](#installation)
- [Documentation](#documentation)
- [Sponsors](#sponsors)
- [Example](#example)
- [Contributions](#contributions)
- [Development](#development)

## Overview

This project features two complimentary libraries to help reduce the amount of work needed to
incorporate WebAuthn into a website. The following packages are maintained here:

- [@simplewebauthn/server](https://github.com/MasterKale/SimpleWebAuthn/tree/master/packages/server)
- [@simplewebauthn/browser](https://github.com/MasterKale/SimpleWebAuthn/tree/master/packages/browser)

## Installation

SimpleWebAuthn can be installed from **[NPM](https://www.npmjs.com/search?q=%40simplewebauthn)** and
**[JSR](https://jsr.io/@simplewebauthn)** in **Node LTS 22.x and higher**, **Deno v2.4.x and
higher** projects, and other compatible runtimes (Cloudflare Workers, Bun, etc...)

See the packages' READMEs for more specific installation information.

### Supported Versions Strategy <!-- omit in toc -->

SimpleWebAuthn actively supports the following runtimes, targeting versions using the guidelines
below:

**Node:** LTS releases in Active and Maintenance mode, as per
https://nodejs.org/en/about/previous-releases.

**Deno:** SemVer minor releases (e.g. `2.4.x`) for up to one year after their release, as per
https://github.com/denoland/deno/releases.

## Documentation

In-depth documentation for this project is available at https://simplewebauthn.dev/docs

## Sponsors

Thank you very much to those who sponsor my work. Your contributions help keep the open-source dream
alive 🙇‍♂️

Interested in sponsoring this project? See here for more info:
https://github.com/sponsors/MasterKale

### 🌟 Platinum Sponsor <!-- omit from toc -->

<p class="sponsor-logo">
  <a href="https://a0.to/signup/simplewebauthn">
    <img src="https://github.com/user-attachments/assets/82bd296f-81c9-455f-b561-29119bd941c3" width="270" height="101" alt="Auth0 by Okta" />
    <br />
    <em>Simple Authentication. Make login our problem. Not yours.</em>
  </a>
</p>

### 🏅 Gold Sponsor <!-- omit from toc -->

<p class="sponsor-logo">
  <a href="https://www.authsignal.com">
    <img src="https://github.com/user-attachments/assets/475e8759-bb1a-4614-b3f9-b38002b11f34" width="270" height="63" alt="Authsignal" />
    <br />
    <em>Simple, drop-in passkeys and MFA as a Service</em>
  </a>
</p>

## Example

For a practical guide to implementing these libraries, take a look at the
[example project](https://github.com/MasterKale/SimpleWebAuthn/tree/master/example). It includes a
single-file Express server and a few HTML files that, combined with the packages in this repo, are
close to all it takes to get up and running with WebAuthn.

## Contributions

The SimpleWebAuthn project is not currently open to external contributions.

Please [submit an Issue](https://github.com/MasterKale/SimpleWebAuthn/issues/new/choose) and fill
out the provided template with as much information as possible if you have found a bug in need of
fixing.

You can also [submit an Issue](https://github.com/MasterKale/SimpleWebAuthn/issues/new/choose) to
request new features, or to suggest changes to existing features.

## Development

Install the following before proceeding:

- **Deno v2.4.x**

After pulling down the code, set up dependencies:

```sh
deno install
```

To run unit tests for all workspace packages, use the `test` series of scripts:

```sh
cd packages/browser/ && deno task test
```

```sh
cd packages/server/ && deno task test
```

Tests can be run in watch mode with the `test:watch` series of scripts:

```sh
cd packages/browser/ && deno task test:watch
```

```sh
cd packages/server/ && deno task test:watch
```

### Test Coverage <!-- omit in toc -->

The following additional dependencies are needed locally to display test coverage reports:

- **genhtml** (run `brew install lcov` on macOS to install this CLI tool)

Then run the following command to run tests and then host a coverage report at
http://127.0.0.1:8000:

```
deno run test:coverage
```

---
_Source: https://npm.io/package/@simplewebauthn/types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
