# @simplewebauthn/browser ![WebAuthn](https://img.shields.io/badge/WebAuthn-Simplified-blueviolet?style=for-the-badge&logo=WebAuthn) [![npm (scoped)](https://img.shields.io/npm/v/@simplewebauthn/browser?style=for-the-badge&logo=npm)](https://www.npmjs.com/package/@simplewebauthn/browser) [![JSR](https://jsr.io/badges/@simplewebauthn/browser?style=for-the-badge)](https://jsr.io/@simplewebauthn/browser) ![Browser Support](https://img.shields.io/badge/Browser-ES2021+-brightgreen?style=for-the-badge&logo=Mozilla+Firefox) ![Browser Support](https://img.shields.io/badge/Browser-ES5-brightgreen?style=for-the-badge&logo=Mozilla+Firefox) - [Installation](#installation) - [Node LTS 22.x and higher](#node-lts-22x-and-higher) - [Deno v2.4.x and higher](#deno-v24x-and-higher) - [UMD](#umd) - [ES2021](#es2021) - [ES5](#es5) - [Documentation](#documentation) ## Installation This package can be installed from **[NPM](https://www.npmjs.com/package/@simplewebauthn/browser)** and **[JSR](https://jsr.io/@simplewebauthn/browser)**: ### Node LTS 22.x and higher ```sh npm install @simplewebauthn/browser ``` > NOTE: This project will aim to support Node LTS releases through their Active and Maintenance windows as tracked on [the Node.js Releases page](https://nodejs.org/en/about/previous-releases). ### Deno v2.4.x and higher ```sh deno add jsr:@simplewebauthn/browser ``` > NOTE: [Deno no longer has LTS releases to track after April 30, 2026](https://docs.deno.com/runtime/fundamentals/stability_and_releases/#long-term-support-(lts)). This project will aim to support Deno minor releases for up to one year after their release. ### UMD This package can also be installed via **unpkg** by including the following script in your page's `` element. The library's methods will be available on the global **`SimpleWebAuthnBrowser`** object. > NOTE: The only difference between the two packages below is that the ES5 bundle includes some > polyfills for older browsers. This adds some bundle size overhead, but _does_ enable use of > `browserSupportsWebAuthn()` in older browsers to show appropriate UI when WebAuthn is unavailable. #### ES2021 If you only need to support modern browsers, include the `ES2021` version: ```html ``` #### ES5 If you need to support WebAuthn feature detection in deprecated browsers like IE11 and Edge Legacy, include the `ES5` version: ```html ``` ## Documentation You can find in-depth documentation on this package here: https://simplewebauthn.dev/docs/packages/browser